|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html xmlns="http://www.w3.org/1999/xhtml"
|
3 |
| - xmlns:th="http://www.thymeleaf.org"> |
| 3 | + xmlns:th="http://www.thymeleaf.org" |
| 4 | + xmlns:sec="http://www.thymeleaf.org/extras/spring-security"> |
4 | 5 | <head th:include="layoutMain :: tw-head">
|
5 | 6 | </head>
|
6 | 7 | <body id="page-top" class="page-2" style="padding-top:50px; padding-bottom:200px;">
|
7 | 8 | <header th:include="layoutMain :: tw-header" >
|
8 | 9 | </header>
|
9 | 10 | <main class="page-content">
|
10 |
| - <div class="container"> |
11 |
| - <div class="row"> |
12 |
| - <div class="col-md-12"> |
13 |
| - <h2>Application Error, please contact <a href="/imprint" th:href="@{/imprint}"> Support</a>.</h2> |
14 |
| - <h3>Debug Information:</h3> |
15 |
| - <div class="well"> |
16 |
| - <div class="row"> |
17 |
| - <div class="col-md-6">Requested URL=</div> |
18 |
| - <div class="col-md-6"> |
19 |
| - <span th:text="${url}">url</span> |
| 11 | + <div class="tw-page-content tw-page-content-exceptions"> |
| 12 | + <div class="container"> |
| 13 | + <div class="row"> |
| 14 | + <div class="col-md-12"> |
| 15 | + <h2>Fehler. Bitte kontaktieren Sie den <a href="/imprint" th:href="@{/imprint}"> Support</a>.</h2> |
| 16 | + |
| 17 | + <p th:if="${url}"> |
| 18 | + <b>Seite:</b> <span th:text="${url}">Page URL</span> |
| 19 | + </p> |
| 20 | + |
| 21 | + <p th:if="${timestamp}" id='created'> |
| 22 | + <b>Zeitpunkt:</b> <span th:text="${timestamp}">Timestamp</span> |
| 23 | + </p> |
| 24 | + |
| 25 | + <p th:if="${status}"> |
| 26 | + <b>HTTP Status:</b> <span th:text="${status}">status-code</span> <span |
| 27 | + th:if="${error}" th:text="'('+${error}+')'">error ...</span> |
| 28 | + </p> |
| 29 | + |
| 30 | + <!--/* ${ex} is set by ourSimpleMappingExceptionResolver, |
| 31 | + ${exception} or ${message} are set internally by Spring Boot. */--> |
| 32 | + <div sec:authorize="isAuthenticated()"> |
| 33 | + <div th:if="${ex} or ${exception} or (${message} and ${message.length() != 0})"> |
| 34 | + <b>Cause:</b> <span th:if="${ex}" th:text="${ex}">exception ...</span> |
| 35 | + <span th:if="${exception}" th:text="${exception}">exception ...</span> |
| 36 | + <span th:if="${message} and ${message.length() != 0}" th:text="${message}">message ...</span> |
20 | 37 | </div>
|
| 38 | + |
| 39 | + <p th:unless="${ex} or ${exception} or (${message} and ${message.length() != 0})"> |
| 40 | + Ursache unbekannt (keine Details vorhanden).s |
| 41 | + </p> |
| 42 | + |
21 | 43 | </div>
|
22 |
| - <div class="row"> |
23 |
| - <div class="col-md-6">Exception=</div> |
24 |
| - <div class="col-md-6"> |
25 |
| - <span th:text="${exception.message}">exception.message</span> |
26 |
| - </div> |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + |
| 47 | + <div class="row" sec:authorize="isAuthenticated()"> |
| 48 | + <div class="col-md-12"> |
| 49 | + <strong>Exception Stack Trace</strong><br/> |
| 50 | + <div th:if="${exception}"> |
| 51 | + <ul th:each="e : ${exception.suppressed}"> |
| 52 | + <span th:text="${e.message}">e.message</span> |
| 53 | + <ul th:each="stack : ${e.stackTrace}"> |
| 54 | + <li th:text="${stack">stack</li> |
| 55 | + </ul> |
| 56 | + </ul> |
| 57 | + <ul th:each="ste : ${exception.stackTrace}"> |
| 58 | + <li th:text="${ste}">ste</li> |
| 59 | + </ul> |
27 | 60 | </div>
|
28 |
| - <!-- |
29 |
| - <div class="row"> |
30 |
| - <div class="col-md-12"> |
31 |
| - <strong>Exception Stack Trace</strong><br/> |
32 |
| - <ul th:each="ste : ${exception.stackTrace}"> |
33 |
| - <li th:text="${ste}">ste</li> |
| 61 | + <div th:if="${ex}"> |
| 62 | + <ul th:each="e : ${ex.suppressed}"> |
| 63 | + <span th:text="${e.message}">e.message</span> |
| 64 | + <ul th:each="stack : ${e.stackTrace}"> |
| 65 | + <li th:text="${stack">stack</li> |
34 | 66 | </ul>
|
35 |
| - </div> |
| 67 | + </ul> |
| 68 | + <ul th:each="ste : ${ex.stackTrace}"> |
| 69 | + <li th:text="${ste}">ste</li> |
| 70 | + </ul> |
36 | 71 | </div>
|
37 |
| - --> |
38 | 72 | </div>
|
39 | 73 | </div>
|
40 | 74 | </div>
|
|
0 commit comments