function _drupal_render_exception_safe

7.x _drupal_render_exception_safe($exception)

Renders an exception error message without further exceptions.


$exception: The exception object that was thrown.

Return value

An error message.

3 calls to _drupal_render_exception_safe()
_drupal_exception_handler in drupal/includes/
Provides custom PHP exception handling.
_drupal_session_write in drupal/includes/
Writes an entire session to the database (internal use only).
_drupal_shutdown_function in drupal/includes/
Executes registered shutdown functions.


drupal/includes/, line 134
Functions for error handling.


function _drupal_render_exception_safe($exception) {
  return check_plain(strtr('%type: !message in %function (line %line of %file).', _drupal_decode_exception($exception)));