PageRenderTime 47ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/org.homerepair/grails-app/views/error.gsp

https://code.google.com/
Unknown | 54 lines | 52 code | 2 blank | 0 comment | 0 complexity | 473b673fb3f04a60412ace1b7bc12a8c MD5 | raw file
  1. <html>
  2. <head>
  3. <title>Grails Runtime Exception</title>
  4. <style type="text/css">
  5. .message {
  6. border: 1px solid black;
  7. padding: 5px;
  8. background-color:#E9E9E9;
  9. }
  10. .stack {
  11. border: 1px solid black;
  12. padding: 5px;
  13. overflow:auto;
  14. height: 300px;
  15. }
  16. .snippet {
  17. padding: 5px;
  18. background-color:white;
  19. border:1px solid black;
  20. margin:3px;
  21. font-family:courier;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <h1>Grails Runtime Exception</h1>
  27. <h2>Error Details</h2>
  28. <div class="message">
  29. <strong>Error ${request.'javax.servlet.error.status_code'}:</strong> ${request.'javax.servlet.error.message'.encodeAsHTML()}<br/>
  30. <strong>Servlet:</strong> ${request.'javax.servlet.error.servlet_name'}<br/>
  31. <strong>URI:</strong> ${request.'javax.servlet.error.request_uri'}<br/>
  32. <g:if test="${exception}">
  33. <strong>Exception Message:</strong> ${exception.message?.encodeAsHTML()} <br />
  34. <strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br />
  35. <strong>Class:</strong> ${exception.className} <br />
  36. <strong>At Line:</strong> [${exception.lineNumber}] <br />
  37. <strong>Code Snippet:</strong><br />
  38. <div class="snippet">
  39. <g:each var="cs" in="${exception.codeSnippet}">
  40. ${cs?.encodeAsHTML()}<br />
  41. </g:each>
  42. </div>
  43. </g:if>
  44. </div>
  45. <g:if test="${exception}">
  46. <h2>Stack Trace</h2>
  47. <div class="stack">
  48. <pre><g:each in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre>
  49. </div>
  50. </g:if>
  51. </body>
  52. </html>