public abstract class WrapperException
extends java.lang.Exception
catch block for
their nested exception.| Modifier | Constructor and Description |
|---|---|
protected |
WrapperException(java.lang.String m)
Create a wrapper exception with the given message.
|
protected |
WrapperException(java.lang.String m,
java.lang.Throwable t)
Create a wrapper exception with the given message and nested
exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage()
Retrieve the exception message text.
|
java.lang.Throwable |
getNested()
Reads the exception wrapped by this object.
|
void |
printStackTrace(java.io.PrintStream ps) |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of this exception.
|
protected WrapperException(java.lang.String m,
java.lang.Throwable t)
m - The exception message text.t - The nested exception that caused this one.protected WrapperException(java.lang.String m)
m - The exception message text.public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwablepublic java.lang.Throwable getNested()
Throwable object that is the exception
that was originally thrown.