|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.webmacro.RethrowableRuntimeException
RethrowableRuntimeException A standard exception, inherited from RuntimeException, which also includes a constructor of the form Exception(String, Exception) which allows one exception to wrap another without throwing away useful debugging information. The PrintStackTrace routine will print the stack trace for both the original exception and the point at which the exception was rethrown.
Constructor Summary | |
RethrowableRuntimeException()
|
|
RethrowableRuntimeException(java.lang.String s)
|
|
RethrowableRuntimeException(java.lang.String s,
java.lang.Throwable e)
|
Method Summary | |
java.lang.Throwable |
getCaught()
Deprecated. you should use getCause instead |
java.lang.Throwable |
getCause()
Return the underlying exception provided at construction time or null if none was provided. |
java.lang.Throwable |
getRootCause()
Return the original exception cause. |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream ps)
|
void |
printStackTrace(java.io.PrintWriter pw)
|
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 |
Constructor Detail |
public RethrowableRuntimeException()
public RethrowableRuntimeException(java.lang.String s)
public RethrowableRuntimeException(java.lang.String s, java.lang.Throwable e)
Method Detail |
public void printStackTrace()
public void printStackTrace(java.io.PrintStream ps)
public void printStackTrace(java.io.PrintWriter pw)
public java.lang.Throwable getCaught()
getCause
instead
public java.lang.Throwable getCause()
public java.lang.Throwable getRootCause()
RethrowableException
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |