public class RecursivelyDescribeExceptionStack extends Object
Modifier and Type | Method and Description |
---|---|
static void |
apply(Throwable excDescribe,
Writer writer,
String prefix,
int wordWrapLimit,
boolean showExceptionType)
Incrementally adds a line to a string builder with the message of each exception moving onto
the next nested exception until there are no more
|
public static void apply(Throwable excDescribe, Writer writer, String prefix, int wordWrapLimit, boolean showExceptionType) throws IOException
excDescribe
- exception to describewriter
- where the friendly-messaged is outputtedprefix
- incrementally prepended to each message (first message is skipped)wordWrapLimit
- max-number of characters of a single-line of the screen (considering
only prefix + line), if it's -1 it is disabledshowExceptionType
- adds a rightmost column showing the exception class typeIOException
- if an I/O error occurs with the writerCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.