Tidy the unhandled exception error page

This commit is contained in:
2011-12-29 17:16:29 +00:00
parent abe0a239e5
commit 5c33c6e5b2

View File

@@ -7,40 +7,56 @@
<p>
An unhandled exception was caught during the page template processing. The full details are shown below:
</p>
<table class="exception-details">
<colgroup id="header">
<col />
</colgroup>
<colgroup>
<col />
</colgroup>
<tbody>
<tr>
<th>Exception</th>
<td>{$exception_type}</td>
</tr>
<tr>
<th>File</th>
<td>{$exception->getFile()}</td>
</tr>
<tr>
<th>Line</th>
<td>{$exception->getLine()}</td>
</tr>
<tr>
<th>Message</th>
<td>{$exception->getMessage()}</td>
</tr>
<tr>
<th>Stack Trace</th>
<td><pre>{$exception->getTrace()|print_r}</pre></td>
</tr>
</tbody>
</table>
<div class="container">
<div class="row">
<div class="span4 column">
<h2>Exception</h2>
</div>
<div class="span11 column">
{$exception_type|escape:html}
</div>
</div>
<div class="row">
<div class="span4 column">
<h2>File</h2>
</div>
<div class="span11 column">
{$exception->getFile()|escape:html}
</div>
</div>
<div class="row">
<div class="span4 column">
<h2>Line</h2>
</div>
<div class="span11 column">
{$exception->getLine()}
</div>
</div>
<div class="row">
<div class="span4 column">
<h2>Message</h2>
</div>
<div class="span11 column">
{$exception->getMessage()}
</div>
</div>
<div class="row">
<div class="span4 column">
<h2>Stack Trace</h2>
</div>
<div class="span11 column">
{$exception->getTrace()|var_dump}
</div>
</div>
</div>
<p>
<em>Note:</em> Exception details should not be displayed on production systems.
Disable the <a href="{$base_uri}admin/settings/key/debug.show_exceptions/"><code>debug.show_exceptions</code></a>
Disable the <a href="{$base_uri}admin/tab/settings/"><code>Display Exceptions</code></a>
setting to omit the exception details from this page.
</p>
{/if}