|
24 | 24 | break; |
25 | 25 | } |
26 | 26 | ?> |
27 | | - <p><?= $reasonMessage ?></p> |
| 27 | +<p><?= $reasonMessage ?></p> |
28 | 28 | <?php endif ?> |
29 | 29 |
|
30 | 30 | <?php if (isset($this->controller) && $this->controller) : ?> |
31 | | - <dl> |
32 | | - <dt>Controller:</dt> |
33 | | - <dd> |
34 | | - <?= $this->escapeHtml($this->controller) ?> |
35 | | - <?php |
36 | | - if (isset($this->controller_class) |
37 | | - && $this->controller_class |
38 | | - && $this->controller_class != $this->controller |
39 | | - ) { |
40 | | - echo '(' . sprintf('resolves to %s', $this->escapeHtml($this->controller_class)) . ')'; |
41 | | - } |
42 | | - ?> |
43 | | - </dd> |
44 | | - </dl> |
| 31 | +<dl> |
| 32 | + <dt>Controller:</dt> |
| 33 | + <dd> |
| 34 | + <?= $this->escapeHtml($this->controller) ?> |
| 35 | + <?php |
| 36 | + if (isset($this->controller_class) |
| 37 | + && $this->controller_class |
| 38 | + && $this->controller_class != $this->controller |
| 39 | + ) { |
| 40 | + echo '(' . sprintf('resolves to %s', $this->escapeHtml($this->controller_class)) . ')'; |
| 41 | + } |
| 42 | + ?> |
| 43 | + </dd> |
| 44 | +</dl> |
45 | 45 | <?php endif ?> |
46 | 46 |
|
47 | 47 | <?php if (isset($this->display_exceptions) && $this->display_exceptions) : ?> |
48 | 48 | <?php if (isset($this->exception) && ($this->exception instanceof \Exception || $this->exception instanceof \Error)) : ?> |
49 | | - <hr/> |
| 49 | +<hr/> |
50 | 50 |
|
51 | | - <h2>Additional information:</h2> |
52 | | - <h3><?= get_class($this->exception) ?></h3> |
| 51 | +<h2>Additional information:</h2> |
| 52 | +<h3><?= get_class($this->exception) ?></h3> |
| 53 | +<dl> |
| 54 | + <dt>File:</dt> |
| 55 | + <dd> |
| 56 | + <pre><?= $this->exception->getFile() ?>:<?= $this->exception->getLine() ?></pre> |
| 57 | + </dd> |
| 58 | + <dt>Message:</dt> |
| 59 | + <dd> |
| 60 | + <pre><?= $this->escapeHtml($this->exception->getMessage()) ?></pre> |
| 61 | + </dd> |
| 62 | + <dt>Stack trace:</dt> |
| 63 | + <dd> |
| 64 | + <pre><?= $this->escapeHtml($this->exception->getTraceAsString()) ?></pre> |
| 65 | + </dd> |
| 66 | +</dl> |
| 67 | + |
| 68 | + <?php if ($ex = $this->exception->getPrevious()) : ?> |
| 69 | +<hr/> |
| 70 | + |
| 71 | +<h2>Previous exceptions:</h2> |
| 72 | +<ul class="list-unstyled"> |
| 73 | + <?php $icount = 0 ?> |
| 74 | + <?php while ($ex) : ?> |
| 75 | + <li> |
| 76 | + <h3><?= get_class($ex) ?></h3> |
53 | 77 | <dl> |
54 | 78 | <dt>File:</dt> |
55 | 79 | <dd> |
56 | | - <pre><?= $this->exception->getFile() ?>:<?= $this->exception->getLine() ?></pre> |
| 80 | + <pre><?= $ex->getFile() ?>:<?= $ex->getLine() ?></pre> |
57 | 81 | </dd> |
58 | 82 | <dt>Message:</dt> |
59 | 83 | <dd> |
60 | | - <pre><?= $this->escapeHtml($this->exception->getMessage()) ?></pre> |
| 84 | + <pre><?= $this->escapeHtml($ex->getMessage()) ?></pre> |
61 | 85 | </dd> |
62 | 86 | <dt>Stack trace:</dt> |
63 | 87 | <dd> |
64 | | - <pre><?= $this->escapeHtml($this->exception->getTraceAsString()) ?></pre> |
| 88 | + <pre><?= $this->escapeHtml($ex->getTraceAsString()) ?></pre> |
65 | 89 | </dd> |
66 | 90 | </dl> |
67 | | - |
68 | | - <?php if ($ex = $this->exception->getPrevious()) : ?> |
69 | | - <hr/> |
70 | | - |
71 | | - <h2>Previous exceptions:</h2> |
72 | | - <ul class="list-unstyled"> |
73 | | - <?php $icount = 0; ?> |
74 | | - <?php while ($ex) : ?> |
75 | | - <li> |
76 | | - <h3><?= get_class($ex) ?></h3> |
77 | | - <dl> |
78 | | - <dt>File:</dt> |
79 | | - <dd> |
80 | | - <pre><?= $ex->getFile() ?>:<?= $ex->getLine() ?></pre> |
81 | | - </dd> |
82 | | - <dt>Message:</dt> |
83 | | - <dd> |
84 | | - <pre><?= $this->escapeHtml($ex->getMessage()) ?></pre> |
85 | | - </dd> |
86 | | - <dt>Stack trace:</dt> |
87 | | - <dd> |
88 | | - <pre><?= $this->escapeHtml($ex->getTraceAsString()) ?></pre> |
89 | | - </dd> |
90 | | - </dl> |
91 | | - </li> |
92 | | - <?php |
93 | | - $ex = $ex->getPrevious(); |
94 | | - if (++$icount >= 50) { |
95 | | - echo '<li>There may be more exceptions, but we have no enough memory to proccess it.</li>'; |
96 | | - break; |
97 | | - } |
98 | | - ?> |
99 | | - <?php endwhile ?> |
100 | | - </ul> |
| 91 | + </li> |
| 92 | + <?php |
| 93 | + $ex = $ex->getPrevious(); |
| 94 | + if (++$icount >= 50) { |
| 95 | + echo '<li>There may be more exceptions, but we have no enough memory to proccess it.</li>'; |
| 96 | + break; |
| 97 | + } |
| 98 | + ?> |
| 99 | + <?php endwhile ?> |
| 100 | +</ul> |
101 | 101 | <?php endif ?> |
102 | | - <?php else: ?> |
103 | | - <h3>No Exception available</h3> |
| 102 | + <?php else : ?> |
| 103 | +<h3>No Exception available</h3> |
104 | 104 | <?php endif ?> |
105 | 105 | <?php endif ?> |
0 commit comments