public class RtfParserException extends Exception
RtfParserException
is the exception object thrown by
the parserConstructor and Description |
---|
RtfParserException()
Constructs a
RtfParserException whithout a message. |
RtfParserException(Exception ex)
Creates a RtfParserException object.
|
RtfParserException(String message)
Constructs a
RtfParserException with a message. |
Modifier and Type | Method and Description |
---|---|
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
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, setStackTrace
public RtfParserException(Exception ex)
ex
- an exception that has to be turned into a RtfParserExceptionpublic RtfParserException()
RtfParserException
whithout a message.public RtfParserException(String message)
RtfParserException
with a message.message
- a message describing the exceptionpublic String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String toString()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- a printstream objectpublic void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- A PrintWriter objectCopyright © 2015. All rights reserved.