$old_exception_handler
$old_exception_handler :
Event handlers for exceptions and errors
$client = new Raven_Client('http://public:secret/example.com/1'); $error_handler = new Raven_ErrorHandler($client); $error_handler->registerExceptionHandler(); $error_handler->registerErrorHandler(); $error_handler->registerShutdownFunction();
$client : \Raven_Client
registerExceptionHandler(boolean $call_existing = true) : \Raven_ErrorHandler
Register a handler which will intercept unhandled exceptions and report them to the associated Sentry client.
boolean | $call_existing | Call any existing exception handlers after processing this instance. |
registerErrorHandler(boolean $call_existing = true, array $error_types = null) : \Raven_ErrorHandler
Register a handler which will intercept standard PHP errors and report them to the associated Sentry client.
boolean | $call_existing | Call any existing errors handlers after processing this instance. |
array | $error_types | All error types that should be sent. |
registerShutdownFunction(integer $reservedMemorySize = 10) : \Raven_ErrorHandler
Register a fatal error handler, which will attempt to capture errors which shutdown the PHP process. These are commonly things like OOM or timeouts.
integer | $reservedMemorySize | Number of kilobytes memory space to reserve, which is utilized when handling fatal errors. |