Class DocumentReaderException
com.regula.documentreader.api.errors.DocumentReaderException
public class DocumentReaderException
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
An error during adding data to packagestatic final int
An error during start Activity from when app is in backgroundstatic final int
Internal error during mapping backend errors to DocumentReader exceptionsstatic final int
An error during connection external BLE devicestatic final int
User doesn't provided permission to a camerastatic final int
Camera not available for usestatic final int
Cannot use camera in selected scenariostatic final int
Response from the service is not HttpURLConnection.HTTP_OKstatic final int
A database is corrupted after checking the checksum valuestatic final int
An error when the device is not capable of communicating with other devices via Bluetooth Low Energy radio.static final int
An error is encountered during database download.static final int
An error during finalize data to packagestatic final int
This scenario is not supported based on your license and Core framework capabilities.static final int
Core framework is absent.static final int
The reader is not initialized or an unknown initialization error occured.static final int
Failed to set TCC params.static final int
A license is absent or corrupted.static final int
db.dat is incorrect.static final int
An invalid date, i.e.static final int
An invalid device ID.static final int
An invalid OS or application ID.static final int
An invalid version.static final int
There are no authenticity capabilities in your license.static final int
There are no capabilities for this functionality in your license.static final int
db.dat is absent.static final int
Something went wrong with online license processing.static final int
Out of memory exceptionstatic final int
There are no results after recognition of camera frames.static final int
Incorrect input parameters for online processingstatic final int
An invalid URL of the video during its generating.static final int
An error is encountered during database removal.static final int
An error is encountered during database save on your device.static final int
An error during start backend processingstatic final int
An error describes incorrect state of Document Readerstatic final int
Missing input parameters -
Constructor Summary
ConstructorDescriptionDocumentReaderException
(int code) DocumentReaderException
(int code, String message) DocumentReaderException
(String message) DocumentReaderException
(String message, Throwable cause) DocumentReaderException
(Throwable cause) -
Method Summary
-
Field Details
-
INITIALIZATION_CORE_ABSENT
public static final int INITIALIZATION_CORE_ABSENTCore framework is absent.- See Also:
-
INITIALIZATION_FAILED
public static final int INITIALIZATION_FAILEDThe reader is not initialized or an unknown initialization error occured.- See Also:
-
INCORRECT_SCENARIO
public static final int INCORRECT_SCENARIOThis scenario is not supported based on your license and Core framework capabilities.- See Also:
-
NO_RESULT
public static final int NO_RESULTThere are no results after recognition of camera frames.- See Also:
-
REMOVE_DATABASE
public static final int REMOVE_DATABASEAn error is encountered during database removal.- See Also:
-
FETCHING_DATABASE
public static final int FETCHING_DATABASEAn error is encountered during database download.- See Also:
-
DB_DESCRIPTION_NOT_FOUND
public static final int DB_DESCRIPTION_NOT_FOUNDResponse from the service is not HttpURLConnection.HTTP_OK- See Also:
-
SAVE_DB
public static final int SAVE_DBAn error is encountered during database save on your device.- See Also:
-
DOWNLOAD_DB_INCORRECT_CHECKSUM
public static final int DOWNLOAD_DB_INCORRECT_CHECKSUMA database is corrupted after checking the checksum value- See Also:
-
LICENSE_ABSENT_OR_CORRUPTED
public static final int LICENSE_ABSENT_OR_CORRUPTEDA license is absent or corrupted.- See Also:
-
LICENSE_INVALID_DATE
public static final int LICENSE_INVALID_DATEAn 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_VERSIONAn invalid version.- See Also:
-
LICENSE_INVALID_DEVICE_ID
public static final int LICENSE_INVALID_DEVICE_IDAn invalid device ID.- See Also:
-
LICENSE_INVALID_SYSTEM_OR_APP_ID
public static final int LICENSE_INVALID_SYSTEM_OR_APP_IDAn invalid OS or application ID.- See Also:
-
LICENSE_NO_CAPABILITIES
public static final int LICENSE_NO_CAPABILITIESThere are no capabilities for this functionality in your license.- See Also:
-
LICENSE_NO_AUTHENTICITY
public static final int LICENSE_NO_AUTHENTICITYThere are no authenticity capabilities in your license.- See Also:
-
RECORD_PROCESS_INVALID_OUTPUT_URL
public static final int RECORD_PROCESS_INVALID_OUTPUT_URLAn invalid URL of the video during its generating.- See Also:
-
LICENSE_ONLINE_ERROR
public static final int LICENSE_ONLINE_ERRORSomething went wrong with online license processing.- See Also:
-
LICENSE_NO_DATABASE
public static final int LICENSE_NO_DATABASEdb.dat is absent.- See Also:
-
LICENSE_DATABASE_INCORRECT
public static final int LICENSE_DATABASE_INCORRECTdb.dat is incorrect.- See Also:
-
INVALID_TCC_PARAMS
public static final int INVALID_TCC_PARAMSFailed to set TCC params.- See Also:
-
START_BACKEND_PROCESSING
public static final int START_BACKEND_PROCESSINGAn error during start backend processing- See Also:
-
ADD_DATA_TO_PACKAGE
public static final int ADD_DATA_TO_PACKAGEAn error during adding data to package- See Also:
-
FINALIZE_FAILED
public static final int FINALIZE_FAILEDAn error during finalize data to package- See Also:
-
CAMERA_NO_PERMISSION
public static final int CAMERA_NO_PERMISSIONUser doesn't provided permission to a camera- See Also:
-
CAMERA_NOT_AVAILABLE
public static final int CAMERA_NOT_AVAILABLECamera not available for use- See Also:
-
CANNOT_USE_CAMERA_IN_SCENARIO
public static final int CANNOT_USE_CAMERA_IN_SCENARIOCannot use camera in selected scenario- See Also:
-
NATIVE_JAVA_EXCEPTION
public static final int NATIVE_JAVA_EXCEPTIONOut of memory exception- See Also:
-
BACKEND_ONLINE_PROCESSING
public static final int BACKEND_ONLINE_PROCESSINGInternal error during mapping backend errors to DocumentReader exceptions- See Also:
-
WRONG_INPUT
public static final int WRONG_INPUTMissing input parameters- See Also:
-
STATE_EXCEPTION
public static final int STATE_EXCEPTIONAn error describes incorrect state of Document Reader- See Also:
-
BLE_EXCEPTION
public static final int BLE_EXCEPTIONAn error during connection external BLE device- See Also:
-
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED
public static final int FEATURE_BLUETOOTH_LE_NOT_SUPPORTEDAn 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_BACKGROUNDAn error during start Activity from when app is in background- See Also:
-
ONLINE_PROCESSING_WRONG_INPUT
public static final int ONLINE_PROCESSING_WRONG_INPUTIncorrect input parameters for online processing- See Also:
-
-
Constructor Details
-
DocumentReaderException
public DocumentReaderException() -
DocumentReaderException
public DocumentReaderException(int code) -
DocumentReaderException
-
DocumentReaderException
-
DocumentReaderException
-
DocumentReaderException
-
-
Method Details
-
getErrorCode
public int getErrorCode() -
getMessage
-