git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@500812
13f79535-47bb-0310-9956-
ffa450edef68
return theException;
}
- if (theRootCause instanceof ServletException) {
- deeperRootCause = ((ServletException) theRootCause).getRootCause();
- } else if (jspExceptionClazz!=null &&
+ if (jspExceptionClazz!=null &&
jspExceptionClazz.isAssignableFrom(theRootCause.getClass())) {
deeperRootCause = (Throwable)IntrospectionUtils.getProperty(
theRootCause, "rootCause");
sb.append("</pre></p>");
// In case root cause is somehow heavily nested
try {
- if (rootCause instanceof ServletException) {
- nestedRootCause =
- ((ServletException) rootCause).getRootCause();
- } else if (jspExceptionClazz!=null &&
+ if (jspExceptionClazz!=null &&
jspExceptionClazz.isAssignableFrom(
rootCause.getClass())) {
nestedRootCause = (Throwable)IntrospectionUtils.