com.lowagie.text.rtf.parser.exceptions
public class RtfParserException extends java.lang.Exception
RtfParserException
is the exception object thrown by
the parserModifier and Type | Field and Description |
---|---|
private java.lang.Exception |
ex
Contained inner exception object.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
RtfParserException()
Constructs a
RtfParserException whithout a message. |
RtfParserException(java.lang.Exception ex)
Creates a RtfParserException object.
|
RtfParserException(java.lang.String message)
Constructs a
RtfParserException with a message. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage()
and make sure we also produce a localized version
|
java.lang.String |
getMessage()
We print the message of the checked exception
|
void |
printStackTrace()
we have to override this as well
|
void |
printStackTrace(java.io.PrintStream s)
here we prefix, with s.print(), not s.println(), the stack
trace with "ExceptionConverter:"
|
void |
printStackTrace(java.io.PrintWriter s)
Again, we prefix the stack trace with "ExceptionConverter:"
|
private static java.lang.String |
split(java.lang.String s)
Removes everything in a String that comes before a '.'
|
java.lang.String |
toString()
The toString() is changed to be prefixed with ExceptionConverter
|
private static final long serialVersionUID
private java.lang.Exception ex
public RtfParserException(java.lang.Exception ex)
ex
- an exception that has to be turned into a RtfParserExceptionpublic RtfParserException()
RtfParserException
whithout a message.public RtfParserException(java.lang.String message)
RtfParserException
with a message.message
- a message describing the exceptionpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
s
- a printstream objectpublic void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- A PrintWriter objectprivate static java.lang.String split(java.lang.String s)
s
- the original string