|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.lowagie.text.rtf.parser.exceptions.RtfParserException
public class RtfParserException
RtfParserException is the exception object thrown by
the parser
| Field Summary | |
|---|---|
private Exception |
ex
Contained inner exception object. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
RtfParserException()
Constructs a RtfParserException whithout a message. |
|
RtfParserException(Exception ex)
Creates a RtfParserException object. |
|
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:" |
private 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 |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private Exception ex
| Constructor Detail |
|---|
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 exception| Method Detail |
|---|
public String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String toString()
toString in class Throwablepublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
printStackTrace in class Throwables - a printstream objectpublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwables - A PrintWriter objectprivate static String split(String s)
s - the original string
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||