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, MacValidationException, MemoryLimitsAwareException, Pdf20ConformanceException, PdfAConformanceException, PdfUAConformanceException, SvgProcessingException, UnsupportedSecurityHandlerException, XrefCycledReferencesException
Exception class for exceptions in kernel module.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPdfException(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 Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
object
Object for more details -
messageParams
-
-
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
-
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:
getMessagein 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
-