remove dead code, replace deprecated .getRootCause() with .getCause()
Throwable realcause = null;
- if( exception != null )
- {
msg = exception.getMessage();
if( msg == null || msg.length() == 0 )
{
if( exception instanceof javax.servlet.jsp.JspException )
{
log.debug("IS JSPEXCEPTION");
- realcause = ((javax.servlet.jsp.JspException)exception).getRootCause();
+ realcause = ((javax.servlet.jsp.JspException)exception).getCause();
log.debug("REALCAUSE="+realcause);
}
if( realcause == null ) realcause = exception;
- }
- else
- {
- realcause = new Exception("Unknown general exception");
- }
log.debug("Error.jsp exception is: ",exception);
