|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.compoze.util.NestedException
public abstract class NestedException
This class is an exception that wraps another exception. Any nested exception
traces are included when the stack trace is printed. Contrast this with
NestedRuntimeException
, which is a similar but unchecked exception.
NestedRuntimeException
,
Serialized FormConstructor Summary | |
---|---|
NestedException()
Constructor. |
|
NestedException(java.lang.Exception e)
Constructor. |
|
NestedException(java.lang.Exception e,
java.lang.String sMessage)
Constructor. |
|
NestedException(java.lang.String sMessage)
Constructor. |
|
NestedException(java.lang.Throwable t)
Constructor. |
|
NestedException(java.lang.Throwable t,
java.lang.String sMessage)
Constructor. |
Method Summary | |
---|---|
java.lang.Throwable |
getNestedException()
Get the nested exception. |
void |
printStackTrace()
Print stack trace of this exception and the underlying exception if available. |
void |
printStackTrace(java.io.PrintStream printStream)
Print stack trace of this exception and the underlying exception if available. |
void |
printStackTrace(java.io.PrintWriter writer)
Print stack trace of this exception and the underlying exception if available. |
java.lang.String |
toString()
Create a string representation of the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NestedException()
public NestedException(java.lang.String sMessage)
sMessage
- a detail message for the exceptionpublic NestedException(java.lang.Exception e)
e
- the underlying exceptionpublic NestedException(java.lang.Exception e, java.lang.String sMessage)
e
- the underlying exceptionsMessage
- a detail message for the exceptionpublic NestedException(java.lang.Throwable t)
t
- the underlying throwablepublic NestedException(java.lang.Throwable t, java.lang.String sMessage)
t
- the underlying throwablesMessage
- a detail message for the exceptionMethod Detail |
---|
public java.lang.Throwable getNestedException()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
writer
- the writer to print topublic void printStackTrace(java.io.PrintStream printStream)
printStackTrace
in class java.lang.Throwable
printStream
- the print stream to print topublic java.lang.String toString()
toString
in class java.lang.Throwable
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |