Package com.itextpdf.text.exceptions
Class InvalidImageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.itextpdf.text.exceptions.InvalidImageException
- All Implemented Interfaces:
Serializable
RuntimeException to indicate that the provided Image is invalid/corrupted.
Should only be thrown/not caught when ignoring invalid images.
- Since:
- 5.4.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Throwable
private static final long
a serial version UID -
Constructor Summary
ConstructorsConstructorDescriptionInvalidImageException
(String message) Creates an instance with a message and no causeInvalidImageException
(String message, Throwable cause) Creates an exception with a message and a cause -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDa serial version UID- See Also:
-
cause
-
-
Constructor Details
-
InvalidImageException
Creates an instance with a message and no cause- Parameters:
message
- the reason why the document isn't a PDF document according to iText.
-
InvalidImageException
Creates an exception with a message and a cause- Parameters:
message
- the reason why the document isn't a PDF document according to iText.cause
- the cause of the exception, if any
-
-
Method Details