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
52
53
54
55
56
57
58
59
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="java.io.*,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.wildfire.auth.UnauthorizedException,
org.jivesoftware.wildfire.user.UserNotFoundException,
org.jivesoftware.wildfire.group.GroupNotFoundException"
isErrorPage="true"
%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<% boolean debug = "true".equals(JiveGlobals.getProperty("skin.default.debug"));
if (debug) {
exception.printStackTrace();
}
%>
<% if (exception instanceof UnauthorizedException) { %>
<p>
<fmt:message key="error.admin_privileges" />
</p>
<% } else if (exception instanceof UserNotFoundException) {
String username = ParamUtils.getParameter(request,"username");
%>
<p>
<% if (username == null) { %>
<fmt:message key="error.requested_user_not_found" />
<% } else { %>
<fmt:message key="error.specific_user_not_found">
<fmt:param value="${username}" />
</fmt:message>
<% } %>
</p>
<% } else if (exception instanceof GroupNotFoundException) { %>
<p>
<fmt:message key="error.not_found_group" />
</p>
<% } %>
<% if (exception != null) {
StringWriter sout = new StringWriter();
PrintWriter pout = new PrintWriter(sout);
exception.printStackTrace(pout);
%>
<fmt:message key="error.exception" />
<pre>
<%= sout.toString() %>
</pre>
<% } %>