/** * Prints the stack trace to the specified stream. * * @param stream the output stream. */ public void printStackTrace( final PrintStream stream ) { super.printStackTrace( stream ); if ( getException() != null ) { stream.println( "ParentException: " ); getException().printStackTrace( stream ); } }
/** * Prints the stack trace to the specified writer. * * @param writer the writer. */ public void printStackTrace( final PrintWriter writer ) { super.printStackTrace( writer ); if ( getException() != null ) { writer.println( "ParentException: " ); getException().printStackTrace( writer ); } }
final Exception parentEx = getException(); if ( parentEx instanceof ParseException ) { return parentEx.getMessage();