/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace(PrintWriter writer) { writer.write(ExceptionMessageGenerator.getHeader("LocalExceptionStackHeader")); writer.write(cr()); super.printStackTrace(writer); if ((getInternalException() != null) && shouldPrintInternalException()) { writer.write(ExceptionMessageGenerator.getHeader("InternalExceptionStackHeader")); writer.write(cr()); getInternalException().printStackTrace(writer); if ((getInternalException() instanceof java.lang.reflect.InvocationTargetException) && ((((java.lang.reflect.InvocationTargetException) getInternalException()).getTargetException()) != null)) { writer.write(ExceptionMessageGenerator.getHeader("TargetInvocationExceptionStackHeader")); writer.write(cr()); ((java.lang.reflect.InvocationTargetException) getInternalException()).getTargetException().printStackTrace(writer); } } writer.flush(); }
/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace(PrintWriter writer) { writer.write(ExceptionMessageGenerator.getHeader("LocalExceptionStackHeader")); writer.write(cr()); super.printStackTrace(writer); if ((getInternalException() != null) && shouldPrintInternalException()) { writer.write(ExceptionMessageGenerator.getHeader("InternalExceptionStackHeader")); writer.write(cr()); getInternalException().printStackTrace(writer); if ((getInternalException() instanceof java.lang.reflect.InvocationTargetException) && ((((java.lang.reflect.InvocationTargetException)getInternalException()).getTargetException()) != null)) { writer.write(ExceptionMessageGenerator.getHeader("TargetInvocationExceptionStackHeader")); writer.write(cr()); ((java.lang.reflect.InvocationTargetException)getInternalException()).getTargetException().printStackTrace(writer); } } writer.flush(); }
/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace(PrintWriter writer) { writer.write(ExceptionMessageGenerator.getHeader("LocalExceptionStackHeader")); writer.write(cr()); super.printStackTrace(writer); if ((getInternalException() != null) && shouldPrintInternalException()) { writer.write(ExceptionMessageGenerator.getHeader("InternalExceptionStackHeader")); writer.write(cr()); getInternalException().printStackTrace(writer); if ((getInternalException() instanceof java.lang.reflect.InvocationTargetException) && ((((java.lang.reflect.InvocationTargetException) getInternalException()).getTargetException()) != null)) { writer.write(ExceptionMessageGenerator.getHeader("TargetInvocationExceptionStackHeader")); writer.write(cr()); ((java.lang.reflect.InvocationTargetException) getInternalException()).getTargetException().printStackTrace(writer); } } writer.flush(); }