forked from kitodo/kitodo-production
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.xhtml
More file actions
52 lines (45 loc) · 2 KB
/
error.xhtml
File metadata and controls
52 lines (45 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!--
*
* (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
*
* This file is part of the Kitodo project.
*
* It is licensed under GNU General Public License version 3 or later.
*
* For the full copyright and license information, please read the
* GPL3-License.txt file that was distributed with this source code.
*
-->
<ui:composition
template="/WEB-INF/templates/base.xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:o="omnifaces">
<ui:define name="content">
<h:panelGroup id="errorContainer"
layout="block">
<p:panel styleClass="content-header">
<ui:insert name="contentHeader">
<h3>#{err.errorOccurred}</h3>
</ui:insert>
</p:panel>
<h:panelGroup layout="block">
<ul id="errorDetails">
<li>Date/time: #{o:formatDate(now, 'yyyy-MM-dd HH:mm:ss')}</li>
<li>User agent: #{header['user-agent']}</li>
<li>User IP: #{request.remoteAddr}</li>
<li>Request URI: #{requestScope['jakarta.servlet.error.request_uri']}</li>
<li>Ajax request: #{facesContext.partialViewContext.ajaxRequest ? 'Yes' : 'No'}</li>
<li>Status code: #{requestScope['jakarta.servlet.error.status_code']}</li>
<li>Exception type: #{requestScope['jakarta.servlet.error.exception_type']}</li>
<li>Exception message: #{requestScope['jakarta.servlet.error.message']}</li>
<li>Exception UUID: #{requestScope['org.omnifaces.exception_uuid']}</li>
<li>Stack trace:
<pre>#{o:printStackTrace(requestScope['jakarta.servlet.error.exception'])}</pre>
</li>
</ul>
</h:panelGroup>
</h:panelGroup>
</ui:define>
</ui:composition>