java.io.Serializable
, NestedThrowable
public class NestedException extends java.lang.Exception implements NestedThrowable
NestedThrowable.Util
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.Throwable |
nested |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getMessage() |
|
java.lang.Throwable |
getNested() |
Gets the nested Throwable.
|
java.lang.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(java.io.PrintStream s) |
Prints the stack trace associated with this exception and
its nested exception.
|
void |
printStackTrace(java.io.PrintWriter w) |
Prints the stack trace associated with this exception and
its nested exception.
|
void |
superPrintStackTrace(java.io.PrintStream ps) |
|
void |
superPrintStackTrace(java.io.PrintWriter pw) |
|
java.lang.String |
superToString() |
|
java.lang.String |
toString() |
Prints the exception message and its nested exception message.
|
public java.lang.Throwable getNestedException()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Throwable getNested()
getNested
in interface NestedThrowable
public java.lang.String superToString()
superToString
in interface NestedThrowable
public void superPrintStackTrace(java.io.PrintStream ps)
superPrintStackTrace
in interface NestedThrowable
public void superPrintStackTrace(java.io.PrintWriter pw)
superPrintStackTrace
in interface NestedThrowable
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
s
- PrintStreampublic void printStackTrace(java.io.PrintWriter w)
printStackTrace
in class java.lang.Throwable
w
- PrintStreampublic void printStackTrace()
printStackTrace
in class java.lang.Throwable