|
||||||||||
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.idoox.util.RuntimeWrappedException
This exception is able to contain another exception inside.
It overrides useful methods such as printStackTrace
to show stack trace of exception inside.
Constructor Summary | |
RuntimeWrappedException()
creates an exception |
|
RuntimeWrappedException(java.lang.String message)
creates an exception |
|
RuntimeWrappedException(java.lang.String message,
java.lang.Throwable reason)
creates an exception |
|
RuntimeWrappedException(java.lang.Throwable reason)
creates an exception |
Method Summary | |
java.lang.Throwable |
getCause()
|
java.lang.Throwable |
getException()
accesses the wrapped exception |
java.lang.Throwable |
getRootException()
returns the originally wrapped exception in a sequence of wrappers. |
void |
printStackTrace()
prints stack trace to stderr |
void |
printStackTrace(java.io.PrintStream p)
Prints stack trace. |
void |
printStackTrace(java.io.PrintWriter p)
Prints stack trace. |
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 RuntimeWrappedException()
public RuntimeWrappedException(java.lang.String message)
message
- the messagepublic RuntimeWrappedException(java.lang.String message, java.lang.Throwable reason)
message
- the messagereason
- the wrapped exceptionpublic RuntimeWrappedException(java.lang.Throwable reason)
reason
- the wrapped exceptionMethod Detail |
public void printStackTrace()
public void printStackTrace(java.io.PrintStream p)
p
- the print stream where the error will be printed topublic void printStackTrace(java.io.PrintWriter p)
p
- the print writer where the error will be printed topublic java.lang.Throwable getException()
public java.lang.Throwable getRootException()
public java.lang.Throwable getCause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |