Elgg  Version 3.0
Public Member Functions | List of all members
Elgg\Application\ExceptionHandler Class Reference

Handler for uncaught exceptions. More...

Public Member Functions

 __invoke ($exception)
 Intercepts, logs, and displays uncaught exceptions. More...
 

Detailed Description

Handler for uncaught exceptions.

Definition at line 19 of file ExceptionHandler.php.

Member Function Documentation

Elgg\Application\ExceptionHandler::__invoke (   $exception)

Intercepts, logs, and displays uncaught exceptions.

To use a viewtype other than failsafe, create the views: <viewtype>/messages/exceptions/admin_exception <viewtype>/messages/exceptions/exception See the json viewtype for an example.

Warning
This function should never be called directly.
See also
http://www.php.net/set-exception-handler
Parameters
Exception | \Error$exceptionThe exception/error being handled
Returns
void

Definition at line 39 of file ExceptionHandler.php.


The documentation for this class was generated from the following file: