exception.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Laravel - Uncaught Exception</title>
  6. <style>
  7. @import url(http://fonts.googleapis.com/css?family=Ubuntu);
  8. body {
  9. background:#eee;
  10. color: #6d6d6d;
  11. font: normal normal normal 14px/1.253 Ubuntu, sans-serif;
  12. margin:0;
  13. min-width:1000px;
  14. padding:0;
  15. }
  16. #main {
  17. background-clip: padding-box;
  18. background-color: #fff;
  19. border:1px solid #ccc;
  20. border-radius: 5px;
  21. box-shadow: 0 0 10px #cdcdcd;
  22. margin: 50px auto 0;
  23. padding: 30px;
  24. width: 900px;
  25. }
  26. #main h1 {
  27. font-family: 'Ubuntu';
  28. font-size: 34px;
  29. margin: 0 0 20px 0;
  30. padding: 0;
  31. }
  32. #main h2,h3 {
  33. margin-top: 25px;
  34. padding: 0 0 0 0;
  35. }
  36. #main h3 {
  37. font-size: 18px;
  38. }
  39. #main p {
  40. line-height: 25px;
  41. margin: 10px 0;
  42. }
  43. #main pre {
  44. font-size: 12px;
  45. background-color: #f0f0f0;
  46. border-left: 1px solid #d8d8d8;
  47. border-top: 1px solid #d8d8d8;
  48. border-radius: 5px;
  49. padding: 10px;
  50. white-space: pre-wrap;
  51. }
  52. </style>
  53. </head>
  54. <body>
  55. <div id="main">
  56. <h1><?php echo $severity; ?></h1>
  57. <h3>Message</h3>
  58. <pre><?php echo $message; ?></pre>
  59. <h3>Stack Trace</h3>
  60. <pre><?php echo $exception->getTraceAsString(); ?></pre>
  61. <h3>Snapshot</h3>
  62. <?php
  63. $lines = array();
  64. foreach (File::snapshot($exception->getFile(), $exception->getLine()) as $num => $context)
  65. {
  66. $lines[] = $num.': '.$context;
  67. }
  68. ?>
  69. <pre><?php echo htmlentities(implode("\n", $lines)); ?></pre>
  70. </div>
  71. </body>
  72. </html>