|
||||||||||
| 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.anthonyeden.lib.ChainedException
A chained exception allows a parent exception to be specified
and accessible through the getNestedError() method
and will appear in stack traces.
| Constructor Summary | |
ChainedException(java.lang.String message,
java.lang.Throwable nestedError)
Create a new ChainedException. |
|
| Method Summary | |
java.lang.Throwable |
getNestedError()
Return the parent exception. |
void |
printStackTrace()
Print the stack trace to System.err |
void |
printStackTrace(java.io.PrintStream out)
Print the stack trace. |
void |
printStackTrace(java.io.PrintWriter out)
Print the stack trace. |
| 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 ChainedException(java.lang.String message,
java.lang.Throwable nestedError)
message - The messagenestedError - The parent exception| Method Detail |
public java.lang.Throwable getNestedError()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream out)
out - The output streampublic void printStackTrace(java.io.PrintWriter out)
out - The output writer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||