com.lowagie.text
public class ExceptionConverter extends RuntimeException
| Field Summary | |
|---|---|
| Exception | ex we keep a handle to the wrapped exception |
| String | prefix prefix for the exception |
| static long | serialVersionUID |
| Constructor Summary | |
|---|---|
| ExceptionConverter(Exception ex)
Construct a RuntimeException based on another Exception | |
| Method Summary | |
|---|---|
| Throwable | fillInStackTrace()
requests to fill in the stack trace we will have to ignore.
|
| Exception | getException()
and allow the user of ExceptionConverter to get a handle to it. |
| String | getLocalizedMessage()
and make sure we also produce a localized version |
| String | getMessage()
We print the message of the checked exception |
| void | printStackTrace() we have to override this as well |
| void | printStackTrace(PrintStream s)
here we prefix, with s.print(), not s.println(), the stack
trace with "ExceptionConverter:" |
| void | printStackTrace(PrintWriter s)
Again, we prefix the stack trace with "ExceptionConverter:" |
| String | toString()
The toString() is changed to be prefixed with ExceptionConverter |
Parameters: ex the exception that has to be turned into a RuntimeException
Returns: a Throwable
Returns: the original exception
Returns: localized version of the message
Returns: message of the original exception
Parameters: s
Parameters: s
Returns: String version of the exception