|
|||||||||||
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.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()
public void printStackTrace()
This method delegates to the wrapped throwable.
public void printStackTrace(PrintStream s)
s
- the streampublic void printStackTrace(PrintWriter s)
s
- the writerpublic String getMessage()
public String getLocalizedMessage()
public Throwable getCause()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |