|
|||||||||
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.DocumentException
public class DocumentException
Signals that an error has occurred in a Document
.
BadElementException
,
Document
,
DocWriter
,
DocListener
,
Serialized FormField Summary | |
---|---|
private java.lang.Exception |
ex
|
Constructor Summary | |
---|---|
DocumentException()
Constructs a DocumentException whithout a message. |
|
DocumentException(java.lang.Exception ex)
Creates a Document exception. |
|
DocumentException(java.lang.String message)
Constructs a DocumentException with a message. |
Method Summary | |
---|---|
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 |
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 java.lang.Exception ex
Constructor Detail |
---|
public DocumentException(java.lang.Exception ex)
ex
- an exception that has to be turned into a DocumentExceptionpublic DocumentException()
DocumentException
whithout a message.
public DocumentException(java.lang.String message)
DocumentException
with a message.
message
- a message describing the exceptionMethod Detail |
---|
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |