Error Handling Learning Mode

In which of the following situations will you use the set_exception_handler() function?