|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.openemcee.commons.exceptions.ChainedException
This class implements an exception which can be chained to other exceptions, in the style of the SQLException. It is very handy for use in layered applications.
| Constructor Summary | |
ChainedException(java.lang.String message,
java.lang.Throwable chained)
Creates a new instance of ChainedException |
|
| Method Summary | |
java.lang.Throwable |
getChained()
Access the exception which caused this to be thrown. |
java.lang.String |
getMessage()
Get the message associated with this exception. |
void |
printStackTrace()
Print a stack trace to standard error, recursing any chained exceptions. |
void |
printStackTrace(java.io.PrintStream s)
Print a stack trace to a PrintStream, recursing any chained exceptions. |
void |
printStackTrace(java.io.PrintWriter w)
Print a stack trace to a PrintWriter, recursing any chained exceptions. |
java.lang.String |
toString()
Get a resursive string representation of this exception (and all that are chained). |
protected java.lang.String |
toString(java.lang.StringBuffer buf)
Append a recursive string representation to the StringBuffer. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
| 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 chained)
message - The message associated with this exception.chained - The chained exception, or root cause of the problem.| Method Detail |
public java.lang.Throwable getChained()
public java.lang.String getMessage()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream s)
s - The print stream to which we print this stack trace.public void printStackTrace(java.io.PrintWriter w)
w - The print writer to which we print this stack trace.protected java.lang.String toString(java.lang.StringBuffer buf)
buf - The buffer print to which we print the string rep of the object.
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||