function _drupal_exception_handler_additional
Same name in other branches
- 9 core/includes/bootstrap.inc \_drupal_exception_handler_additional()
- 10 core/includes/bootstrap.inc \_drupal_exception_handler_additional()
- 11.x core/includes/bootstrap.inc \_drupal_exception_handler_additional()
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.
1 call to _drupal_exception_handler_additional()
- _drupal_exception_handler in core/
includes/ bootstrap.inc - Provides custom PHP exception handling.
File
-
core/
includes/ bootstrap.inc, line 634
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 />';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.