function _raven_get_error_handler in Raven: Sentry Integration 7
Returns an instance of the Raven PHP error handler.
Return value
Raven_ErrorHandler Raven PHP error handler.
2 calls to _raven_get_error_handler()
- raven_init in ./
raven.module - Implements hook_init().
- _raven_error_handler in ./
raven.module - PHP error handler.
File
- ./
raven.module, line 405 - Allows to track errors to Sentry server.
Code
function _raven_get_error_handler() {
static $handler;
if (!isset($handler)) {
$client = _raven_get_client();
if ($client) {
$handler = new Raven_ErrorHandler($client);
}
}
return $handler;
}