public class NestedException extends Exception implements NestedThrowable
NestedThrowable.Util| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
Throwable |
getNested()
Gets the nested Throwable.
|
Throwable |
getNestedException()
Gets the nested exception.
|
void |
printStackTrace()
Prints the stack trace associated with this exception and
its nested exception to System.err.
|
void |
printStackTrace(PrintStream s)
Prints the stack trace associated with this exception and
its nested exception.
|
void |
printStackTrace(PrintWriter w)
Prints the stack trace associated with this exception and
its nested exception.
|
void |
superPrintStackTrace(PrintStream ps) |
void |
superPrintStackTrace(PrintWriter pw) |
String |
superToString() |
String |
toString()
Prints the exception message and its nested exception message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTraceprotected Throwable nested
public Throwable getNestedException()
public String getMessage()
getMessage in class Throwablepublic Throwable getNested()
getNested in interface NestedThrowablepublic String superToString()
superToString in interface NestedThrowablepublic void superPrintStackTrace(PrintStream ps)
superPrintStackTrace in interface NestedThrowablepublic void superPrintStackTrace(PrintWriter pw)
superPrintStackTrace in interface NestedThrowablepublic String toString()
public void printStackTrace(PrintStream s)
printStackTrace in class Throwables - PrintStreampublic void printStackTrace(PrintWriter w)
printStackTrace in class Throwablew - PrintStreampublic void printStackTrace()
printStackTrace in class Throwable