Package com.itextpdf.text
Class DocumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.itextpdf.text.DocumentException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadElementException
,PdfException
public class DocumentException extends Exception
Signals that an error has occurred in aDocument
.- See Also:
BadElementException
,Document
,DocWriter
,DocListener
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentException()
Constructs aDocumentException
without a message.DocumentException(Exception ex)
Creates a Document exception.DocumentException(String message)
Constructs aDocumentException
with a message.DocumentException(String message, Exception ex)
Constructs aDocumentException
with a message and a Exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DocumentException
public DocumentException(Exception ex)
Creates a Document exception.- Parameters:
ex
- an exception that has to be turned into a DocumentException
-
DocumentException
public DocumentException()
Constructs aDocumentException
without a message.
-
DocumentException
public DocumentException(String message)
Constructs aDocumentException
with a message.- Parameters:
message
- a message describing the exception
-
-