| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.lowagie.text.ExceptionConverter
ExceptionConverter | public class ExceptionConverter extends RuntimeException (Code) | | The ExceptionConverter changes a checked exception into an
unchecked exception.
|
ExceptionConverter | public ExceptionConverter(Exception ex)(Code) | | Construct a RuntimeException based on another Exception
Parameters: ex - the exception that has to be turned into a RuntimeException |
fillInStackTrace | public Throwable fillInStackTrace()(Code) | | requests to fill in the stack trace we will have to ignore.
We can't throw an exception here, because this method
is called by the constructor of Throwable
a Throwable |
getException | public Exception getException()(Code) | | and allow the user of ExceptionConverter to get a handle to it.
the original exception |
getLocalizedMessage | public String getLocalizedMessage()(Code) | | and make sure we also produce a localized version
localized version of the message |
getMessage | public String getMessage()(Code) | | We print the message of the checked exception
message of the original exception |
printStackTrace | public void printStackTrace()(Code) | | we have to override this as well
|
printStackTrace | public void printStackTrace(java.io.PrintStream s)(Code) | | here we prefix, with s.print(), not s.println(), the stack
trace with "ExceptionConverter:"
Parameters: s - |
printStackTrace | public void printStackTrace(java.io.PrintWriter s)(Code) | | Again, we prefix the stack trace with "ExceptionConverter:"
Parameters: s - |
toString | public String toString()(Code) | | The toString() is changed to be prefixed with ExceptionConverter
Stringversion of the exception |
|
|
|