Zend
ZF-100-500 · Question #196
In which of the following situations will you use the set_exception_handler() function?
The correct answer is C. When the try/catch block is unable to catch an exception. See the full explanation below for the reasoning.
Question
In which of the following situations will you use the set_exception_handler() function?
Options
- AWhen you want to set a user -defined function to handle errors.
- BWhen you want to generate a user-level error/warning/notice message.
- CWhen the try/catch block is unable to catch an exception.
- DWhen you want to restore a previously defined exception handler function.
How the community answered
(25 responses)- A4% (1)
- B8% (2)
- C72% (18)
- D16% (4)
Community Discussion
No community discussion yet for this question.