<%-- $Id$ --%> <%@ page import="com.primix.servlet.*" %> <%@ page import="com.primix.foundation.exception.*" %> <%@ page import="java.util.*" %> <%@ page isErrorPage="true" %> <% RequestContext context = RequestContext.get(request); HTMLWriter writer = new HTMLWriter(out); ExceptionDescription[] exceptions; ExceptionAnalyzer analyzer = new ExceptionAnalyzer(); exceptions = analyzer.analyze(exception); %> Primix Virtual Library: Error

An Application Error has Occurred

<% for (int i = 0; i < exceptions.length; i++) { ExceptionDescription desc = exceptions[i]; %> <% ExceptionProperty[] properties = desc.getProperties(); if (properties != null) { for (int j = 0; j < properties.length; j++) { ExceptionProperty prop = properties[i]; %> <% } // for j } // if if (i + 1 == exceptions.length) { String[] trace = desc.getStackTrace(); %> <% } // if else { // Only print stack trace on deepest (last) exception, on others // use a blank row as a seperator. %> <% } // else } // for i %>
Exception <% writer.print(desc.getExceptionClassName()); %>
Message <% writer.print(desc.getMessage()); %>
<% writer.print(prop.getName()); %> <% writer.print(prop.getValue()); %>
Stack Trace:
<% for (int j = 0; j < trace.length; j++) { writer.beginOrphan("li"); writer.print(trace[j]); } %>
 

<% context.write(writer); %>