com.lowagie.text.rtf.parser.exceptions
public class RtfParserException extends Exception
RtfParserException is the exception object thrown by
the parser
Since: 2.0.8
| Field Summary | |
|---|---|
| Exception | ex
Contained inner exception object. |
| static long | serialVersionUID |
| Constructor Summary | |
|---|---|
| RtfParserException(Exception ex)
Creates a RtfParserException object. | |
| RtfParserException()
Constructs a RtfParserException whithout a message. | |
| RtfParserException(String message)
Constructs a RtfParserException with a message.
| |
| Method Summary | |
|---|---|
| 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:" |
| static String | split(String s)
Removes everything in a String that comes before a '.' |
| String | toString()
The toString() is changed to be prefixed with ExceptionConverter |
Parameters: ex an exception that has to be turned into a RtfParserException
RtfParserException whithout a message.RtfParserException with a message.
Parameters: message a message describing the exception
Returns: a localized message
Returns: the error message
Parameters: s a printstream object
Parameters: s A PrintWriter object
Parameters: s the original string
Returns: the part that comes after the dot
Returns: the String version of the exception