- A exception::error
- B error
- C ttsAbort
- D _error
- Share this MCQ
Answer:
A
Share this MCQ
Justification:
- The system enumeration “exception” is used in the parenthesis after the catch statement to specify which type of exception to catch.
- Error is not used to catch an exception, but rather display an error message to the user. It is commonly used after the throw keyword.
- ttsAbort is used in the transaction tracking system to stop a transaction roll back the changes to the state before the ttsBegin statement was called. It is not used in catch statements.
- The Dialog::Error statement is not valid. The dialog object is not an enumeration and does not contain an error value; therefore, it cannot be used in a catch statement.
Related Lesson: Code Statements
Click me to Read more Question & Answer of Module 15: Exception Handling - X++ D365 F&O TechnicalShare this MCQ