|
|||||||||||
| 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
|
+--com.glaivestone.javax.util.PropagatedException
An unchecked exception that is used to propagate an underlying exception into a containing context. Used to circumvent the constraints of checked exception declarations when cooperating parties need to get through without changing the static declarations.
This class was introduced on J2SE 1.3, prior to the
introduction in J2SE 1.4 of the "chained exceptions" capability
wherein the fundamental Exception class adds an
instance variable for recording an underlying cause
(originating exception) for any exception.
This class conforms to the J2SE 1.4 accessing protocol
getCause and provides equivalent stack trace
printing behavior.
| Constructor Summary | |
PropagatedException(java.lang.Throwable cause)
Constructs a PropagatedException which wraps
the underlying cause of the problem. |
|
PropagatedException(java.lang.Throwable cause,
java.lang.String message)
Constructs a PropagatedException which wraps
the underlying cause of the problem. |
|
| Method Summary | |
java.lang.Throwable |
getCause()
Answer the exception that was originally thrown to cause the exception condition. |
void |
printStackTrace()
Prints the stack trace of the exception and its underlying cause to the standard error stream. |
void |
printStackTrace(java.io.PrintStream ps)
Prints the stack trace of the exception and its underlying cause to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of the exception and its underlying cause to the specified print writer. |
java.lang.String |
toString()
Answer a short description of the receiver. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PropagatedException(java.lang.Throwable cause)
PropagatedException which wraps
the underlying cause of the problem.
public PropagatedException(java.lang.Throwable cause,
java.lang.String message)
PropagatedException which wraps
the underlying cause of the problem.
| Method Detail |
public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.Throwable
|
GFL 1.1 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||