|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
jade.util.WrapperException
public abstract class WrapperException
This class acts as a base class for all the exceptions that wrap
another (nested) exception. The typical usage for descendents of
this class is to throw them within the catch block for
their nested exception.
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
Retrieve the exception message text. |
java.lang.Throwable |
getNested()
Reads the exception wrapped by this object. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepublic java.lang.Throwable getNested()
Throwable object that is the exception
that was originally thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||