index.phtml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <header class="header">
  9. <img class="logo" src="<?= $this->basePath() ?>/pub/images/magento-icon.svg" alt="Magento"/>
  10. <h1 class="header-title">An error occurred</h1>
  11. </header>
  12. <h2><?= $this->message ?></h2>
  13. <?php if ( isset( $this->display_exceptions ) && $this->display_exceptions ): ?>
  14. <?php if ( isset( $this->exception ) && $this->exception instanceof Exception ): ?>
  15. <hr/>
  16. <h2>Additional information:</h2>
  17. <h3><?= get_class( $this->exception ) ?></h3>
  18. <dl>
  19. <dt>File:</dt>
  20. <dd>
  21. <pre class="prettyprint linenums"><?= $this->exception->getFile() ?>:<?= $this->exception->getLine() ?></pre>
  22. </dd>
  23. <dt>Message:</dt>
  24. <dd>
  25. <pre class="prettyprint linenums"><?= $this->escapeHtml( $this->exception->getMessage() ) ?></pre>
  26. </dd>
  27. <dt>Stack trace:</dt>
  28. <dd>
  29. <pre class="prettyprint linenums"><?= $this->escapeHtml( $this->exception->getTraceAsString() ) ?></pre>
  30. </dd>
  31. </dl>
  32. <?php
  33. $e = $this->exception->getPrevious();
  34. if ( $e ) :
  35. ?>
  36. <hr/>
  37. <h2>Previous exceptions:</h2>
  38. <ul class="unstyled">
  39. <?php while ( $e ) : ?>
  40. <li>
  41. <h3><?= get_class( $e ) ?></h3>
  42. <dl>
  43. <dt>File:</dt>
  44. <dd>
  45. <pre class="prettyprint linenums"><?= $e->getFile() ?>:<?= $e->getLine() ?></pre>
  46. </dd>
  47. <dt>Message:</dt>
  48. <dd>
  49. <pre class="prettyprint linenums"><?= $this->escapeHtml( $e->getMessage() ) ?></pre>
  50. </dd>
  51. <dt>Stack trace:</dt>
  52. <dd>
  53. <pre class="prettyprint linenums"><?= $this->escapeHtml( $e->getTraceAsString() ) ?></pre>
  54. </dd>
  55. </dl>
  56. </li>
  57. <?php
  58. $e = $e->getPrevious();
  59. endwhile;
  60. ?>
  61. </ul>
  62. <?php endif; ?>
  63. <?php else: ?>
  64. <h3>No Exception available</h3>
  65. <?php endif ?>
  66. <?php endif ?>