Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
index.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <header class="header">
11  <img class="logo" src="<?= $this->basePath() ?>/pub/images/magento-icon.svg" alt="Magento"/>
12  <h1 class="header-title">An error occurred</h1>
13 </header>
14 
15 <h2><?= $this->message ?></h2>
16 
17 <?php if ( isset( $this->display_exceptions ) && $this->display_exceptions ): ?>
18 
19  <?php if ( isset( $this->exception ) && $this->exception instanceof Exception ): ?>
20  <hr/>
21  <h2>Additional information:</h2>
22  <h3><?= get_class( $this->exception ) ?></h3>
23  <dl>
24  <dt>File:</dt>
25  <dd>
26  <pre class="prettyprint linenums"><?= $this->exception->getFile() ?>:<?= $this->exception->getLine() ?></pre>
27  </dd>
28 
29  <dt>Message:</dt>
30  <dd>
31  <pre class="prettyprint linenums"><?= $this->escapeHtml( $this->exception->getMessage() ) ?></pre>
32  </dd>
33 
34  <dt>Stack trace:</dt>
35  <dd>
36  <pre class="prettyprint linenums"><?= $this->escapeHtml( $this->exception->getTraceAsString() ) ?></pre>
37  </dd>
38  </dl>
39  <?php
40  $e = $this->exception->getPrevious();
41  if ( $e ) :
42  ?>
43  <hr/>
44  <h2>Previous exceptions:</h2>
45  <ul class="unstyled">
46  <?php while ( $e ) : ?>
47  <li>
48  <h3><?= get_class( $e ) ?></h3>
49  <dl>
50  <dt>File:</dt>
51  <dd>
52  <pre class="prettyprint linenums"><?= $e->getFile() ?>:<?= $e->getLine() ?></pre>
53  </dd>
54 
55  <dt>Message:</dt>
56  <dd>
57  <pre class="prettyprint linenums"><?= $this->escapeHtml( $e->getMessage() ) ?></pre>
58  </dd>
59 
60  <dt>Stack trace:</dt>
61  <dd>
62  <pre class="prettyprint linenums"><?= $this->escapeHtml( $e->getTraceAsString() ) ?></pre>
63  </dd>
64  </dl>
65  </li>
66  <?php
67  $e = $e->getPrevious();
69  ?>
70  </ul>
71  <?php endif; ?>
72 
73  <?php else: ?>
74 
75  <h3>No Exception available</h3>
76 
77  <?php endif ?>
78 
79 <?php endif ?>
endif
Definition: index.phtml:71
endwhile
Definition: index.phtml:68