Last change
on this file since 895 was
55,
checked in by gav, 16 years ago
|
Create Grails app (manual recursion to get everything in)
|
File size:
1.6 KB
|
Line | |
---|
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 | |
---|
26 | <body> |
---|
27 | <h1>Grails Runtime Exception</h1> |
---|
28 | <h2>Error Details</h2> |
---|
29 | |
---|
30 | <div class="message"> |
---|
31 | <strong>Error ${request.'javax.servlet.error.status_code'}:</strong> ${request.'javax.servlet.error.message'.encodeAsHTML()}<br/> |
---|
32 | <strong>Servlet:</strong> ${request.'javax.servlet.error.servlet_name'}<br/> |
---|
33 | <strong>URI:</strong> ${request.'javax.servlet.error.request_uri'}<br/> |
---|
34 | <g:if test="${exception}"> |
---|
35 | <strong>Exception Message:</strong> ${exception.message?.encodeAsHTML()} <br /> |
---|
36 | <strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br /> |
---|
37 | <strong>Class:</strong> ${exception.className} <br /> |
---|
38 | <strong>At Line:</strong> [${exception.lineNumber}] <br /> |
---|
39 | <strong>Code Snippet:</strong><br /> |
---|
40 | <div class="snippet"> |
---|
41 | <g:each var="cs" in="${exception.codeSnippet}"> |
---|
42 | ${cs?.encodeAsHTML()}<br /> |
---|
43 | </g:each> |
---|
44 | </div> |
---|
45 | </g:if> |
---|
46 | </div> |
---|
47 | <g:if test="${exception}"> |
---|
48 | <h2>Stack Trace</h2> |
---|
49 | <div class="stack"> |
---|
50 | <pre><g:each in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre> |
---|
51 | </div> |
---|
52 | </g:if> |
---|
53 | </body> |
---|
54 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.