forked from zendframework/modules.zendframework.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.phtml
More file actions
70 lines (69 loc) · 2.66 KB
/
index.phtml
File metadata and controls
70 lines (69 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
use Application\Exception;
?>
<h1>Oops. Something went wrong.</h1>
<div class="alert alert-danger alert-error">
<strong>Error</strong>
<p>
<?php
if($this->exception instanceof Exception\ViewableUserException && $this->exception->getPublicMessage()): ?>
<?php echo $this->escapeHtml($this->exception->getPublicMessage()); ?>
<?php else: ?>
Sorry, we got no more information
<?php endif; ?>
</p>
</div>
<?php if (isset($this->display_exceptions) && $this->display_exceptions): ?>
<?php if (isset($this->exception) && $this->exception instanceof \Exception): ?>
<hr/>
<h2>Additional information:</h2>
<h3><?php echo get_class($this->exception); ?></h3>
<dl>
<dt>File:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->exception->getFile() ?>:<?php echo $this->exception->getLine() ?></pre>
</dd>
<dt>Message:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->escapeHtml($this->exception->getMessage()) ?></pre>
</dd>
<dt>Stack trace:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->escapeHtml($this->exception->getTraceAsString()) ?></pre>
</dd>
</dl>
<?php
$e = $this->exception->getPrevious();
if ($e) :
?>
<hr/>
<h2>Previous exceptions:</h2>
<ul class="unstyled">
<?php while ($e) : ?>
<li>
<h3><?php echo get_class($e); ?></h3>
<dl>
<dt>File:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $e->getFile() ?>:<?php echo $e->getLine() ?></pre>
</dd>
<dt>Message:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->escapeHtml($e->getMessage()) ?></pre>
</dd>
<dt>Stack trace:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->escapeHtml($e->getTraceAsString()) ?></pre>
</dd>
</dl>
</li>
<?php
$e = $e->getPrevious();
endwhile;
?>
</ul>
<?php endif; ?>
<?php else: ?>
<h3>No Exception available</h3>
<?php endif; ?>
<?php endif; ?>