|
|||||||||
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 tyrex.util.NestedException
Base type for all Type exceptions.
This exception can optionally wrap another exception. The printed stack trace
will be that of the wrapped exception, if one is provided in the constructor.
The underlying exception can be obtained from getException
.
Several exceptions support wrapping of an underlying exception by extending from this class. When another nested exception is provided in the constructor, the underlying exception will be used, so it's safe to construct a nested exception from another nested exception.
Support for unwrapping the underlying exceptions include NestedException
,
SAXException
.
Field Summary |
Fields inherited from class java.lang.Exception |
|
Constructor Summary | |
NestedException(java.lang.Exception except)
Construct a new nested exception wrapping an underlying exception. |
|
NestedException(java.lang.String message)
Construct a new nested with a message. |
|
NestedException(java.lang.String message,
java.lang.Exception except)
Construct a new nested exception wrapping an underlying exception and providing a message. |
Method Summary | |
java.lang.Exception |
getException()
Returns the underlying exception, if this exception wraps another exception. |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream stream)
|
void |
printStackTrace(java.io.PrintWriter writer)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NestedException(java.lang.String message, java.lang.Exception except)
message
- The exception messageexcept
- The underlying exceptionpublic NestedException(java.lang.String message)
message
- The exception messagepublic NestedException(java.lang.Exception except)
except
- The underlying exceptionMethod Detail |
public java.lang.Exception getException()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream stream)
public void printStackTrace(java.io.PrintWriter writer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |