|
|||||||||||
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 | +--de.hunsicker.util.ChainingRuntimeException
Resembles the JDK 1.4 exception chaining facility.
Field Summary | |
protected java.lang.Throwable |
cause
Causing throwable. |
Constructor Summary | |
ChainingRuntimeException()
Creates a new ChainingRuntimeException object. |
|
ChainingRuntimeException(java.lang.String message)
Creates a new ChainingRuntimeException object. |
|
ChainingRuntimeException(java.lang.String message,
java.lang.Throwable cause)
Creates a new ChainingRuntimeException object. |
|
ChainingRuntimeException(java.lang.Throwable cause)
Creates a new ChainingRuntimeException object. |
Method Summary | |
java.lang.Throwable |
getCause()
Returns the causing throwable. |
void |
printStackTrace()
Prints this Throwable (the cause if available) and its backtrace to
the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this Throwable (the cause if available) and its backtrace to
the specified print writer. |
void |
printStackTrace(java.io.PrintWriter writer)
Prints this Throwable (the cause if available) and its backtrace to
the specified print writer. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Throwable cause
Constructor Detail |
public ChainingRuntimeException()
public ChainingRuntimeException(java.lang.String message)
message
- error message.public ChainingRuntimeException(java.lang.String message, java.lang.Throwable cause)
message
- error message.cause
- throwable which caused the error.public ChainingRuntimeException(java.lang.Throwable cause)
cause
- throwable which caused the error.Method Detail |
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter writer)
Throwable
(the cause if available) and its backtrace to
the specified print writer.
printStackTrace
in class java.lang.Throwable
writer
- writer to use for output.public void printStackTrace(java.io.PrintStream s)
Throwable
(the cause if available) and its backtrace to
the specified print writer.
printStackTrace
in class java.lang.Throwable
s
- stream to use for output.public void printStackTrace()
Throwable
(the cause if available) and its backtrace to
the standard error stream.
printStackTrace
in class java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |