_drupal_exception_handler

Versions
mediamosa-21
_drupal_exception_handler($exception)

Custom PHP exception handler.

Uncaught exceptions are those not enclosed in a try/catch block. They are always fatal: the execution of the script will stop as soon as the exception handler exits.

Parameters

$exception The exception object that was thrown.

Code

includes/bootstrap.inc, line 1848

<?php
function _drupal_exception_handler($exception) {
  require_once DRUPAL_ROOT . '/includes/errors.inc';
  // Log the message to the watchdog and return an error page to the user.
  _drupal_log_error(_drupal_decode_exception($exception), TRUE);
}
?>