com.lowagie.text
Class DocumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.lowagie.text.DocumentException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadElementException, PdfException

public class DocumentException
extends Exception

Signals that an error has occurred in a Document.

See Also:
BadElementException, Document, DocWriter, DocListener, Serialized Form

Field Summary
private  Exception ex
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
DocumentException()
          Constructs a DocumentException whithout a message.
DocumentException(Exception ex)
           
DocumentException(String message)
          Constructs a DocumentException 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)
           
 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

ex

private Exception ex
Constructor Detail

DocumentException

public DocumentException(Exception ex)

DocumentException

public DocumentException()
Constructs a DocumentException whithout a message.


DocumentException

public DocumentException(String message)
Constructs a DocumentException with a message.

Parameters:
message - a message describing the exception
Method Detail

getMessage

public String getMessage()
We print the message of the checked exception


getLocalizedMessage

public String getLocalizedMessage()
and make sure we also produce a localized version


toString

public String toString()
The toString() is changed to be prefixed with ExceptionConverter


printStackTrace

public void printStackTrace()
we have to override this as well


printStackTrace

public void printStackTrace(PrintStream s)
here we prefix, with s.print(), not s.println(), the stack trace with "ExceptionConverter:"


printStackTrace

public void printStackTrace(PrintWriter s)
Again, we prefix the stack trace with "ExceptionConverter:"


split

private static String split(String s)