public static function display(\Exception $e, $title = 'Application Error')
    {
        @ob_get_clean();
        echo '
            <html>
                <head>
                    <title>' . $title . '</title>
                    <style>
                        body{margin:0;padding:30px;font:14px/1.5 Helvetica,Arial,Verdana,sans-serif;}
                        span{line-height:30px;}
                        h1{margin:0 0 30px;font-size:40px;font-weight:normal;line-height:54px;border-bottom: 2px solid #CCCCCC;}
                        h2{margin:0 0 20px;font-size:30px;font-weight:normal;line-height:50px;border-bottom: 1px solid #CCCCCC;}
                        h3,h4{margin:0 0 20px;font-size:20px;font-weight:normal;line-height:40px;border-bottom: 1px solid #CCCCCC;}
                        a{color:#428bca;text-decoration:underline;}
                        a:hover{color:#2a6496;}
                        div.file-preview{display:block;height:300px;overflow-x:auto;}
                        table{min-width:100%;line-height:30px;}
                        td.cell-left{padding-right:10px;text-align:right;border-right:1px solid #CCCCCC;}
                        td.cell-right{padding-left:10px;text-align:left;}
                        td.width50{width:50px;}
                        td.width15p{width:15%;}
                        .highlight{background:yellow;}
                        td.code-case{font-family:monospace !important;}
                    </style>
                </head>
                <body>
                    <h1>' . $title . '</h1>
                    <h2><strong>Exception: </strong><br /><code>' . get_class($e) . '</code></h2>
                    <p>
                        <strong>Line: </strong>' . $e->getLine() . '<br />
                        <strong>File: </strong>' . $e->getFile() . '<br />
                        <strong>Code: </strong>' . $e->getCode() . '
                    </p>
                    <h3>Message</h3>
                    <p>
                        <strong>' . $e->getMessage() . '</strong><br />
                    </p>
                    <h3>Additional Information:</h3>
                    <p>
                        ' . self::getMoreInformationFromException($e) . '
                    </p>
                    <h3>Trace</h3>
                    <p>
                        <pre><code>' . $e->getTraceAsString() . '</code></pre><br />
                    </p>
                    '.
                    self::getSnippetFromFile($e->getFile(), $e->getLine())
                    .'
                </body>
            </html>
        ';
        return;
    }