|
|||||||||||
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 | +--org.objectweb.jac.util.WrappedThrowableException
This runtime exeption wraps a regular exception so that JAC objects can also send non-runtime exceptions.
Constructor Summary | |
WrappedThrowableException(Throwable wrappedThrowable)
Creates the wrapping exception. |
Method Summary | |
Throwable |
getCause()
|
String |
getLocalizedMessage()
|
String |
getMessage()
Returns the error message string of the wrapped throwable object. |
Throwable |
getWrappedThrowable()
Gets the wrapped throwable. |
void |
printStackTrace()
Prints the stack trace that has been filled when the exception was created. |
void |
printStackTrace(PrintStream s)
Prints the wrapped throwable and its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints the wrapped throwable and its backtrace to the specified print writer. |
String |
toString()
Returns the string depicting the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WrappedThrowableException(Throwable wrappedThrowable)
wrappedThrowable
- the throwable that is wrapped by this
exceptionMethod Detail |
public Throwable getWrappedThrowable()
public String toString()
toString
in class Throwable
public void printStackTrace()
This method delegates to the wrapped throwable.
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- the streampublic void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- the writerpublic String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public Throwable getCause()
getCause
in class Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |