formatHTMLBlock() public static method

public static formatHTMLBlock ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2, $inc_css = true )
$e Exception
コード例 #1
0
ファイル: gitblog.php プロジェクト: rsms/gitblog
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);
}