public interface HasFriendlyErrorMessage
Modifier and Type | Method and Description |
---|---|
String |
friendlyMessage()
A friendly message to describe to the user what went wrong.
|
String |
friendlyMessageHierarchy()
A friendly message to describe to the user what went wrong, which doesn't impose a
fixed-size, or showExceptionNames
|
void |
friendlyMessageHierarchy(Writer writer,
int wordWrapLimit,
boolean showExceptionNames)
A friendly message to describe to the user what went wrong, including all nested exceptions
that have a non-empty error message
|
String friendlyMessage()
String friendlyMessageHierarchy()
void friendlyMessageHierarchy(Writer writer, int wordWrapLimit, boolean showExceptionNames) throws IOException
It starts the least-most-nested exception. It ends with the further-most-nested exception (cause).
writer
- where the friendly-messaged is outputtedwordWrapLimit
- a fixed-width size for the message and indentation (ignoring the
exception name). -1 disables.showExceptionNames
- show exception-names after the error outputIOException
- if an I/O error occurs with the writerCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.