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:
-
Serializable
- Direct Known Subclasses:
-
BadPasswordException
,InlineImageParsingUtils.InlineImageParseException
,InvalidXRefPrevException
,MemoryLimitsAwareException
,PdfAConformanceException
,SvgProcessingException
,UnsupportedSecurityHandlerException
,XrefCycledReferencesException
Exception class for exceptions in kernel module.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPdfException
(String message) Creates a new instance of PdfException.PdfException
(String message, Object obj) Creates a new instance of PdfException.PdfException
(String message, Throwable cause) Creates a new instance of PdfException.PdfException
(String message, Throwable cause, Object obj) Creates a new instance of PdfException.PdfException
(Throwable cause) Creates a new instance of PdfException. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]
Gets additional params for Exception message.setMessageParams
(Object... messageParams) Sets additional params for Exception message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
object
Object for more details
-
-
Constructor Details
-
PdfException
Creates a new instance of PdfException.- Parameters:
-
message
- the detail message.
-
PdfException
Creates a new instance of PdfException.- Parameters:
-
cause
- the cause (which is saved for later retrieval byThrowable.getCause()
method).
-
PdfException
Creates a new instance of PdfException.- Parameters:
-
message
- the detail message. -
obj
- an object for more details.
-
PdfException
Creates a new instance of PdfException.- Parameters:
-
message
- the detail message. -
cause
- the cause (which is saved for later retrieval byThrowable.getCause()
method).
-
PdfException
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 Details
-
getMessage
- Overrides:
-
getMessage
in classThrowable
-
setMessageParams
Sets additional params for Exception message.- Parameters:
-
messageParams
- additional params. - Returns:
- object itself.
-
getMessageParams
Gets additional params for Exception message.- Returns:
- array of additional params
-