Package com.itextpdf.pdfocr.exceptions
Class PdfOcrException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.itextpdf.commons.exceptions.ITextException
com.itextpdf.pdfocr.exceptions.PdfOcrException
- All Implemented Interfaces:
-
Serializable
- Direct Known Subclasses:
-
PdfOcrInputException
,PdfOcrTesseract4Exception
public class PdfOcrException extends com.itextpdf.commons.exceptions.ITextException
Exception class for custom exceptions.
- See Also:
-
Constructor Summary
ConstructorDescriptionPdfOcrException
(String msg) Creates a newPdfOcrException
.PdfOcrException
(String msg, Throwable e) Creates a newPdfOcrException
.Creates a newPdfOcrException
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]
Gets additional params for Exception message.setMessageParams
(String... 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
-
Constructor Details
-
PdfOcrException
Creates a newPdfOcrException
.- Parameters:
-
msg
- the detail message. -
e
- the cause (which is saved for later retrieval byThrowable.getCause()
method).
-
PdfOcrException
Creates a newPdfOcrException
.- Parameters:
-
msg
- the detail message.
-
PdfOcrException
Creates a newPdfOcrException
.- Parameters:
-
e
- the cause which is saved for later retrieval byThrowable.getCause()
method).
-
-
Method Details
-
getMessage
- Overrides:
-
getMessage
in classThrowable
-
getMessageParams
Gets additional params for Exception message.- Returns:
- params for exception message
-
setMessageParams
Sets additional params for Exception message.- Parameters:
-
messageParams
- additional params. - Returns:
- object itself.
-