|
||||||||||
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.idoox.util.WrappedException
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 | |
WrappedException()
Creates an exception. |
|
WrappedException(java.lang.String message)
Creates an exception. |
|
WrappedException(java.lang.String message,
java.lang.Throwable reason)
Creates an exception. |
|
WrappedException(java.lang.Throwable reason)
Creates an exception. |
Method Summary | |
java.lang.Throwable |
getCause()
|
java.lang.Throwable |
getException()
Accesses the wrapped exception. |
java.lang.String |
getLocalizedMessage()
Overloaded method from Throwable class replacing duplicite messages from wrapped exceptions by comparing the message do the message of reason
exception and returning null in case of duplicity. |
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, 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 WrappedException()
public WrappedException(java.lang.String message)
message
- the messagepublic WrappedException(java.lang.String message, java.lang.Throwable reason)
message
- the messagereason
- the wrapped exceptionpublic WrappedException(java.lang.Throwable reason)
reason
- the wrapped exceptionMethod Detail |
public java.lang.String getLocalizedMessage()
reason
exception and returning null
in case of duplicity.
null
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 |