Class DocumentReaderException

com.regula.documentreader.api.errors.DocumentReaderException

public class DocumentReaderException
  • Field Details

    • INITIALIZATION_CORE_ABSENT

      public static final int INITIALIZATION_CORE_ABSENT
      Core framework is absent.
      See Also:
    • INITIALIZATION_FAILED

      public static final int INITIALIZATION_FAILED
      The reader is not initialized or an unknown initialization error occured.
      See Also:
    • INCORRECT_SCENARIO

      public static final int INCORRECT_SCENARIO
      This scenario is not supported based on your license and Core framework capabilities.
      See Also:
    • NO_RESULT

      public static final int NO_RESULT
      There are no results after recognition of camera frames.
      See Also:
    • REMOVE_DATABASE

      public static final int REMOVE_DATABASE
      An error is encountered during database removal.
      See Also:
    • FETCHING_DATABASE

      public static final int FETCHING_DATABASE
      An error is encountered during database download.
      See Also:
    • DB_DESCRIPTION_NOT_FOUND

      public static final int DB_DESCRIPTION_NOT_FOUND
      Response from the service is not HttpURLConnection.HTTP_OK
      See Also:
    • SAVE_DB

      public static final int SAVE_DB
      An error is encountered during database save on your device.
      See Also:
    • DOWNLOAD_DB_INCORRECT_CHECKSUM

      public static final int DOWNLOAD_DB_INCORRECT_CHECKSUM
      A database is corrupted after checking the checksum value
      See Also:
    • LICENSE_ABSENT_OR_CORRUPTED

      public static final int LICENSE_ABSENT_OR_CORRUPTED
      A license is absent or corrupted.
      See Also:
    • LICENSE_INVALID_DATE

      public static final int LICENSE_INVALID_DATE
      An invalid date, i.e. the license may be expired, or the date and time of set on the device doesn't correspond to reality.
      See Also:
    • LICENSE_INVALID_VERSION

      public static final int LICENSE_INVALID_VERSION
      An invalid version.
      See Also:
    • LICENSE_INVALID_DEVICE_ID

      public static final int LICENSE_INVALID_DEVICE_ID
      An invalid device ID.
      See Also:
    • LICENSE_INVALID_SYSTEM_OR_APP_ID

      public static final int LICENSE_INVALID_SYSTEM_OR_APP_ID
      An invalid OS or application ID.
      See Also:
    • LICENSE_NO_CAPABILITIES

      public static final int LICENSE_NO_CAPABILITIES
      There are no capabilities for this functionality in your license.
      See Also:
    • LICENSE_NO_AUTHENTICITY

      public static final int LICENSE_NO_AUTHENTICITY
      There are no authenticity capabilities in your license.
      See Also:
    • RECORD_PROCESS_INVALID_OUTPUT_URL

      public static final int RECORD_PROCESS_INVALID_OUTPUT_URL
      An invalid URL of the video during its generating.
      See Also:
    • LICENSE_ONLINE_ERROR

      public static final int LICENSE_ONLINE_ERROR
      Something went wrong with online license processing.
      See Also:
    • LICENSE_NO_DATABASE

      public static final int LICENSE_NO_DATABASE
      db.dat is absent.
      See Also:
    • LICENSE_DATABASE_INCORRECT

      public static final int LICENSE_DATABASE_INCORRECT
      db.dat is incorrect.
      See Also:
    • INVALID_TCC_PARAMS

      public static final int INVALID_TCC_PARAMS
      Failed to set TCC params.
      See Also:
    • START_BACKEND_PROCESSING

      public static final int START_BACKEND_PROCESSING
      An error during start backend processing
      See Also:
    • ADD_DATA_TO_PACKAGE

      public static final int ADD_DATA_TO_PACKAGE
      An error during adding data to package
      See Also:
    • FINALIZE_FAILED

      public static final int FINALIZE_FAILED
      An error during finalize data to package
      See Also:
    • CAMERA_NO_PERMISSION

      public static final int CAMERA_NO_PERMISSION
      User doesn't provided permission to a camera
      See Also:
    • CAMERA_NOT_AVAILABLE

      public static final int CAMERA_NOT_AVAILABLE
      Camera not available for use
      See Also:
    • CANNOT_USE_CAMERA_IN_SCENARIO

      public static final int CANNOT_USE_CAMERA_IN_SCENARIO
      Cannot use camera in selected scenario
      See Also:
    • NATIVE_JAVA_EXCEPTION

      public static final int NATIVE_JAVA_EXCEPTION
      Out of memory exception
      See Also:
    • BACKEND_ONLINE_PROCESSING

      public static final int BACKEND_ONLINE_PROCESSING
      Internal error during mapping backend errors to DocumentReader exceptions
      See Also:
    • WRONG_INPUT

      public static final int WRONG_INPUT
      Missing input parameters
      See Also:
    • STATE_EXCEPTION

      public static final int STATE_EXCEPTION
      An error describes incorrect state of Document Reader
      See Also:
    • BLE_EXCEPTION

      public static final int BLE_EXCEPTION
      An error during connection external BLE device
      See Also:
    • FEATURE_BLUETOOTH_LE_NOT_SUPPORTED

      public static final int FEATURE_BLUETOOTH_LE_NOT_SUPPORTED
      An error when the device is not capable of communicating with other devices via Bluetooth Low Energy radio.
      See Also:
    • APP_BACKGROUND

      public static final int APP_BACKGROUND
      An error during start Activity from when app is in background
      See Also:
    • ONLINE_PROCESSING_WRONG_INPUT

      public static final int ONLINE_PROCESSING_WRONG_INPUT
      Incorrect input parameters for online processing
      See Also:
  • Constructor Details

    • DocumentReaderException

      public DocumentReaderException()
    • DocumentReaderException

      public DocumentReaderException(int code)
    • DocumentReaderException

      public DocumentReaderException(int code, String message)
    • DocumentReaderException

      public DocumentReaderException(String message)
    • DocumentReaderException

      public DocumentReaderException(String message, Throwable cause)
    • DocumentReaderException

      public DocumentReaderException(Throwable cause)
  • Method Details

    • getErrorCode

      public int getErrorCode()
    • getMessage

      public String getMessage()