ced65de028e515912143b62e915541e94c909aef
[zf2.biz/application_blanche.git] / module / Application / view / error / index.phtml
1 <h1><?php echo $this->translate('An error occurred') ?></h1>
2 <h2><?php echo $this->message ?></h2>
3
4 <?php if (isset($this->display_exceptions) && $this->display_exceptions): ?>
5
6 <?php if(isset($this->exception) && $this->exception instanceof Exception): ?>
7 <hr/>
8 <h2><?php echo $this->translate('Additional information') ?>:</h2>
9 <h3><?php echo get_class($this->exception); ?></h3>
10 <dl>
11     <dt><?php echo $this->translate('File') ?>:</dt>
12     <dd>
13         <pre class="prettyprint linenums"><?php echo $this->exception->getFile() ?>:<?php echo $this->exception->getLine() ?></pre>
14     </dd>
15     <dt><?php echo $this->translate('Message') ?>:</dt>
16     <dd>
17         <pre class="prettyprint linenums"><?php echo $this->exception->getMessage() ?></pre>
18     </dd>
19     <dt><?php echo $this->translate('Stack trace') ?>:</dt>
20     <dd>
21         <pre class="prettyprint linenums"><?php echo $this->exception->getTraceAsString() ?></pre>
22     </dd>
23 </dl>
24 <?php
25     $e = $this->exception->getPrevious();
26     if ($e) :
27 ?>
28 <hr/>
29 <h2><?php echo $this->translate('Previous exceptions') ?>:</h2>
30 <ul class="unstyled">
31     <?php while($e) : ?>
32     <li>
33         <h3><?php echo get_class($e); ?></h3>
34         <dl>
35             <dt><?php echo $this->translate('File') ?>:</dt>
36             <dd>
37                 <pre class="prettyprint linenums"><?php echo $e->getFile() ?>:<?php echo $e->getLine() ?></pre>
38             </dd>
39             <dt><?php echo $this->translate('Message') ?>:</dt>
40             <dd>
41                 <pre class="prettyprint linenums"><?php echo $e->getMessage() ?></pre>
42             </dd>
43             <dt><?php echo $this->translate('Stack trace') ?>:</dt>
44             <dd>
45                 <pre class="prettyprint linenums"><?php echo $e->getTraceAsString() ?></pre>
46             </dd>
47         </dl>
48         <?php
49                 $e = $e->getPrevious();
50             endwhile;
51         ?>
52     </li>
53 </ul>
54 <?php endif; ?>
55
56 <?php else: ?>
57
58 <h3><?php echo $this->translate('No Exception available') ?></h3>
59
60 <?php endif ?>
61
62 <?php endif ?>