|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--jade.util.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()
Prints the stack trace of this exception on the standard output stream. |
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.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public 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 |