Package com.itextpdf.kernel.exceptions
Class PdfException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.itextpdf.commons.exceptions.ITextException
-
- com.itextpdf.kernel.exceptions.PdfException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BadPasswordException,InlineImageParsingUtils.InlineImageParseException,InvalidXRefPrevException,MacValidationException,MemoryLimitsAwareException,Pdf20ConformanceException,PdfAConformanceException,PdfUAConformanceException,SvgProcessingException,UnsupportedSecurityHandlerException,XrefCycledReferencesException
public class PdfException extends ITextException
Exception class for exceptions in kernel module.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Object>messageParamsprotected java.lang.ObjectobjectObject for more details
-
Constructor Summary
Constructors Constructor Description PdfException(java.lang.String message)Creates a new instance of PdfException.PdfException(java.lang.String message, java.lang.Object obj)Creates a new instance of PdfException.PdfException(java.lang.String message, java.lang.Throwable cause)Creates a new instance of PdfException.PdfException(java.lang.String message, java.lang.Throwable cause, java.lang.Object obj)Creates a new instance of PdfException.PdfException(java.lang.Throwable cause)Creates a new instance of PdfException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()protected java.lang.Object[]getMessageParams()Gets additional params for Exception message.PdfExceptionsetMessageParams(java.lang.Object... messageParams)Sets additional params for Exception message.
-
-
-
Constructor Detail
-
PdfException
public PdfException(java.lang.String message)
Creates a new instance of PdfException.- Parameters:
message- the detail message.
-
PdfException
public PdfException(java.lang.Throwable cause)
Creates a new instance of PdfException.- Parameters:
cause- the cause (which is saved for later retrieval byThrowable.getCause()method).
-
PdfException
public PdfException(java.lang.String message, java.lang.Object obj)Creates a new instance of PdfException.- Parameters:
message- the detail message.obj- an object for more details.
-
PdfException
public PdfException(java.lang.String message, java.lang.Throwable cause)Creates a new instance of PdfException.- Parameters:
message- the detail message.cause- the cause (which is saved for later retrieval byThrowable.getCause()method).
-
PdfException
public PdfException(java.lang.String message, java.lang.Throwable cause, java.lang.Object obj)Creates a new instance of PdfException.- Parameters:
message- the detail message.cause- the cause (which is saved for later retrieval byThrowable.getCause()method).obj- an object for more details.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
setMessageParams
public PdfException setMessageParams(java.lang.Object... messageParams)
Sets additional params for Exception message.- Parameters:
messageParams- additional params.- Returns:
- object itself.
-
getMessageParams
protected java.lang.Object[] getMessageParams()
Gets additional params for Exception message.- Returns:
- array of additional params
-
-