On this page
function _drupal_exception_handler_additional
_drupal_exception_handler_additional($exception, $exception2)
Displays any additional errors caught while handling an exception.
Parameters
\Exception|\Throwable $exception: The first exception object that was thrown.
\Exception|\Throwable $exception2: The second exception object that was thrown.
File
- core/includes/bootstrap.inc, line 585
- Functions that need to be loaded on every Drupal request.
Code
function _drupal_exception_handler_additional($exception, $exception2) {
// Another uncaught exception was thrown while handling the first one.
// If we are displaying errors, then do so with no possibility of a further
// uncaught exception being thrown.
if (error_displayable()) {
print '<h1>Additional uncaught exception thrown while handling exception.</h1>';
print '<h2>Original</h2><p>' . Error::renderExceptionSafe($exception) . '</p>';
print '<h2>Additional</h2><p>' . Error::renderExceptionSafe($exception2) . '</p><hr />';
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!bootstrap.inc/function/_drupal_exception_handler_additional/8.1.x