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

public class ConfigParserException extends PdfOcrException
Exception class for exceptions during configuration file parsing.
See Also:
  • Constructor Details

    • ConfigParserException

      protected ConfigParserException (String message)
      Creates new ConfigParserException instance.
      Parameters:
      message - exception message
  • Method Details

    • unexpectedValueForKey

      public static ConfigParserException unexpectedValueForKey (String key)
      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

      public static ConfigParserException unexpectedKey (String key)
      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