Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » [javadoc | source]
com.lowagie.text
public class: DocumentException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         com.lowagie.text.DocumentException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    PdfException, BadElementException, BadPdfFormatException

Signals that an error has occurred in a Document.
Constructor:
 public DocumentException() 
 public DocumentException(Exception ex) 
    Creates a Document exception.
    Parameters:
    ex - an exception that has to be turned into a DocumentException
 public DocumentException(String message) 
    Constructs a DocumentException with a message.
    Parameters:
    message - a message describing the exception
Method from com.lowagie.text.DocumentException Summary:
getLocalizedMessage,   getMessage,   printStackTrace,   printStackTrace,   printStackTrace,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.DocumentException Detail:
 public String getLocalizedMessage() 
    and make sure we also produce a localized version
 public String getMessage() 
    We print the message of the checked exception
 public  void printStackTrace() 
    we have to override this as well
 public  void printStackTrace(PrintStream s) 
    here we prefix, with s.print(), not s.println(), the stack trace with "ExceptionConverter:"
 public  void printStackTrace(PrintWriter s) 
    Again, we prefix the stack trace with "ExceptionConverter:"
 public String toString() 
    The toString() is changed to be prefixed with ExceptionConverter