public class MyException
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MyException.LineBreakStyle |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
appendRootCauseTextsToMessage(java.lang.String msg,
java.lang.Throwable cause,
MyException.LineBreakStyle lineBreakStyle)
Formats an exception message in such a way that the class names and message texts of the underlying 'root' causes of the exception, are included in the exception message.
|
public static java.lang.String appendRootCauseTextsToMessage(java.lang.String msg,
java.lang.Throwable cause,
MyException.LineBreakStyle lineBreakStyle)
msg - The 'original' exception message, which is to be 'extended' with textual descriptions of the underlying exceptions that caused itcause - The direct cause of the exception that is being thrown with msg for its exception text.lineBreakStyle - The line break style to be applied when appending message texts.