- A exception
- B catch
- C throw
- D info
- Share this MCQ
Answer:
C
Share this MCQ
Justification:
- Exception is not a keyword to be used in conjunction with the error output message. Exception is a system enumeration used to specify the type of exception.
- The catch command is used to catch exceptions and uses the system enumeration “exception” to indicate which type of exception is to be expected.
- The throw keyword is used to start exception handling. In the example, it is followed by the text value that will be displayed for the error message being thrown.
- Info is used to display an informational output value to the end user in an info log, it does initiate error handling.
Related Lesson: Code Statements
Click me to Read more Question & Answer of Module 15: Exception Handling - X++ D365 F&O TechnicalShare this MCQ