Class ConfigParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.itextpdf.commons.exceptions.ITextException
com.itextpdf.pdfocr.exceptions.PdfOcrException
com.itextpdf.pdfocr.onnx.exceptions.ConfigParserException
- All Implemented Interfaces:
-
Serializable
Exception class for exceptions during configuration file parsing.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfigParserException(String message) Creates newConfigParserExceptioninstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigParserExceptionunexpectedKey(String key) Creates an exception for cases, when an unexpected key was found in a configuration file mapping.static ConfigParserExceptionCreates an exception for cases, when an unexpected value was found in a configuration file mapping.Methods inherited from class com.itextpdf.pdfocr.exceptions.PdfOcrException
getMessage, getMessageParams, setMessageParamsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigParserException
Creates newConfigParserExceptioninstance.- Parameters:
-
message- exception message
-
-
Method Details
-
unexpectedValueForKey
Creates an exception for cases, when an unexpected value was found in a configuration file mapping.- Parameters:
-
key- key under which the value is located - Returns:
- the created exception
-
unexpectedKey
Creates an exception for cases, when an unexpected key was found in a configuration file mapping.- Parameters:
-
key- key which was found - Returns:
- the created exception
-