|
||||||||||
| 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
|
+--java.lang.RuntimeException
|
+--org.exolab.adaptx.util.NestedRuntimeException
A RuntimeException class which can hold another Exception. Very useful when reporting deep errors that occur in methods that have no defined exception reporting.
| Constructor Summary | |
|---|---|
NestedRuntimeException(java.lang.Exception exception)
Creates a new NestedRuntimeException with the given exception. |
|
NestedRuntimeException(java.lang.String message)
Creates a new NestedRuntimeException with the given message |
|
NestedRuntimeException(java.lang.String message,
java.lang.Exception exception)
Creates a new NestedRuntimeException with the given message and exception. |
|
| Method Summary | |
|---|---|
java.lang.Exception |
getException()
Returns the nested exception for this NestedRuntimeException. |
void |
printStackTrace()
Prints the stack trace for this exception |
void |
printStackTrace(java.io.PrintStream stream)
Prints the stack trace for this exception |
void |
printStackTrace(java.io.PrintWriter writer)
Prints the stack trace for this exception |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NestedRuntimeException(java.lang.String message)
message - the error message for this NestedRuntimeException
public NestedRuntimeException(java.lang.String message,
java.lang.Exception exception)
message - the error message for this NestedRuntimeExceptionexception - the Exception which caused the error.public NestedRuntimeException(java.lang.Exception exception)
exception - the Exception which caused the error.| Method Detail |
public java.lang.Exception getException()
public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream stream)
printStackTrace in class java.lang.Throwablestream - the PrintStream to print the stack trace to.public void printStackTrace(java.io.PrintWriter writer)
printStackTrace in class java.lang.Throwablewriter - the PrintWriter to print the stack trace to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||