|
|||||||||||
| 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
avignon.AvignonRuntimeExceptionContainer
This class is used to convert caught exceptions into RuntimeExceptions that are then monitored by Avignon and included in the error output.
| Constructor Summary | |
AvignonRuntimeExceptionContainer(java.lang.Throwable exception)
Converts the given exception into a runtime exception while preserving its stack trace. |
|
AvignonRuntimeExceptionContainer(java.lang.Throwable exception,
java.lang.String additionalMessage)
Converts the given exception into a runtime exception while preserving its stack trace. |
|
| Method Summary | |
java.lang.Throwable |
getException()
Returns the original exception that was used in construction. |
java.lang.String |
getMessage()
Returns the message of the original exception with the addition message appended. |
void |
printStackTrace()
Prints the addition message to the standard output followed by the stack trace of the original exception. |
void |
printStackTrace(java.io.PrintStream output)
Prints the addition to 'output' followed by the stack trace of the original exception. |
void |
printStackTrace(java.io.PrintWriter output)
Prints the addition to 'output' followed by the stack trace of the original exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AvignonRuntimeExceptionContainer(java.lang.Throwable exception)
exception - Checked exception to mask as an unchecked exception.
public AvignonRuntimeExceptionContainer(java.lang.Throwable exception,
java.lang.String additionalMessage)
exception - Checked exception to mask as an unchecked exception.additionalMessage - Extra information to display with the actual exception's message.| Method Detail |
public java.lang.Throwable getException()
public java.lang.String getMessage()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream output)
output - PrintStream to which to print the stack trace.public void printStackTrace(java.io.PrintWriter output)
output - PrintWriter to which to print the stack trace.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||