10 <header
class=
"header">
11 <img
class=
"logo" src=
"<?= $this->basePath() ?>/pub/images/magento-icon.svg" alt=
"Magento"/>
12 <h1
class=
"header-title">A 404 error occurred</h1>
15 <h2>Page not found</h2>
17 <?php
if ( isset( $this->reason ) && $this->reason ): ?>
21 switch ( $this->reason ) {
22 case 'error-controller-cannot-dispatch':
23 $reasonMessage =
'The requested controller was unable to dispatch the request.';
25 case 'error-controller-not-found':
26 $reasonMessage =
'The requested controller could not be mapped to an existing controller class.';
28 case 'error-controller-invalid':
29 $reasonMessage =
'The requested controller was not dispatchable.';
31 case 'error-router-no-match':
32 $reasonMessage =
'The requested URL could not be matched by routing.';
35 $reasonMessage =
'We cannot determine at this time why a 404 was generated.';
40 <p><?= $reasonMessage ?></p>
44 <?php
if ( isset( $this->controller ) && $this->controller ): ?>
48 <dd><?= $this->escapeHtml( $this->controller ) ?>
50 if ( isset( $this->controller_class )
51 && $this->controller_class
52 && $this->controller_class != $this->controller
54 echo
'(' . sprintf(
'resolves to %s', $this->escapeHtml( $this->controller_class ) ) .
')';
62 <?php
if ( isset( $this->display_exceptions ) && $this->display_exceptions ): ?>
64 <?php
if ( isset( $this->exception ) && $this->exception instanceof Exception ): ?>
66 <h2>Additional information:</h2>
67 <h3><?= get_class( $this->exception ) ?></h3>
71 <pre
class=
"prettyprint linenums"><?= $this->exception->getFile() ?>:<?= $this->exception->getLine() ?></pre>
76 <pre
class=
"prettyprint linenums"><?= $this->exception->getMessage() ?></pre>
81 <pre
class=
"prettyprint linenums"><?= $this->exception->getTraceAsString() ?></pre>
85 $e = $this->exception->getPrevious();
89 <h2>Previous exceptions:</h2>
91 <?php
while ( $e ) : ?>
93 <h3><?= get_class( $e ) ?></h3>
97 <pre
class=
"prettyprint linenums"><?= $e->getFile() ?>:<?= $e->getLine() ?></pre>
102 <pre
class=
"prettyprint linenums"><?= $e->getMessage() ?></pre>
105 <dt>Stack trace:</dt>
107 <pre
class=
"prettyprint linenums"><?= $e->getTraceAsString() ?></pre>
112 $e = $e->getPrevious();
120 <p>No Exception available</p>