public static String formatException ( IThrowableProxy error ) { String ex = "" ; ex += formatTopLevelError ( error ) ; ex += formatStackTraceElements ( error . getStackTraceElementProxyArray ( ) ) ; IThrowableProxy cause = error . getCause ( ) ; ex += DELIMITER ; while ( cause != null ) { ex += formatTopLevelError ( cause ) ; StackTraceElementProxy [ ] arr = cause . getStackTraceElementProxyArray ( ) ; ex += formatStackTraceElements ( arr ) ; ex += DELIMITER ; cause = cause . getCause ( ) ; } return ex ; }
Returns a formatted stack trace for an exception .