function _drupal_render_exception_safe

_drupal_render_exception_safe($exception)

Renders an exception error message without further exceptions.

Parameters

$exception: The exception object that was thrown.

Return value

An error message.

File

includes/errors.inc, line 134
Functions for error handling.

Code

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

© 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/includes!errors.inc/function/_drupal_render_exception_safe/7.x