public static formatHTMLBlock ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2, $inc_css = true ) | ||
$e | Exception |
public static function formatHTMLBlock(Exception $e, $includingTrace = true, $skip = null, $context_lines = 2, $inc_css = true)
{
$msg = self::format($e, $includingTrace, true, $skip, $context_lines);
if ($inc_css) {
$msg = '<style type="text/css" media="screen">' . self::$css . '</style>' . $msg;
}
return '<div class="exception">' . $msg . '</div>';
}
function gb_exception_handler($e) { if (ini_get('html_errors')) { if (headers_sent()) { $msg = GBException::formatHTMLBlock($e); } else { $msg = GBException::formatHTMLDocument($e); } } else { $msg = GBException::format($e, true, false, null, 0); } exit($msg); }