Renders an exception error message without further exceptions.
$exception: The exception object that was thrown.
An error message.
function _drupal_render_exception_safe($exception) {
$decode = _drupal_decode_exception($exception);
unset($decode['backtrace']);
return check_plain(strtr('%type: !message in %function (line %line of %file).', $decode));
}