|
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
java.lang.RuntimeException
com.compoze.util.NestedRuntimeException
public abstract class NestedRuntimeException
This class is a runtime exception that wraps another exception. Any nested
exception traces are included when the stack trace is printed. Contrast this
with NestedException
, which is a similar exception but checked.
NestedException
,
Serialized FormConstructor Summary | |
---|---|
NestedRuntimeException()
Constructor. |
|
NestedRuntimeException(java.lang.Exception e)
Constructor. |
|
NestedRuntimeException(java.lang.Exception e,
java.lang.String sMessage)
Constructor. |
|
NestedRuntimeException(java.lang.String sMessage)
Constructor. |
|
NestedRuntimeException(java.lang.Throwable t)
Constructor. |
|
NestedRuntimeException(java.lang.Throwable t,
java.lang.String sMessage)
Constructor. |
Method Summary | |
---|---|
java.lang.Throwable |
getNestedRuntimeException()
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 NestedRuntimeException()
public NestedRuntimeException(java.lang.String sMessage)
sMessage
- a detail message for the exceptionpublic NestedRuntimeException(java.lang.Exception e)
e
- the underlying exceptionpublic NestedRuntimeException(java.lang.Exception e, java.lang.String sMessage)
e
- the underlying exceptionsMessage
- a detail message for the exceptionpublic NestedRuntimeException(java.lang.Throwable t)
t
- the underlying throwablepublic NestedRuntimeException(java.lang.Throwable t, java.lang.String sMessage)
t
- the underlying throwablesMessage
- a detail message for the exceptionMethod Detail |
---|
public java.lang.Throwable getNestedRuntimeException()
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 |