Class DocumentReaderException
java.lang.Object
RegulaException
com.regula.documentreader.api.errors.DocumentReaderException
public class DocumentReaderException
extends RegulaException
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn error during adding data to packagestatic final intAn error during start Activity from when app is in backgroundstatic final intInternal error during mapping backend errors to DocumentReader exceptionsstatic final intAn error during connection external BLE devicestatic final intUser doesn't provided permission to a camerastatic final intCamera not available for usestatic final intCannot use camera in selected scenariostatic final intResponse from the service is not HttpURLConnection.HTTP_OKstatic final intA database is corrupted after checking the checksum valuestatic final intAn error when the device is not capable of communicating with other devices via Bluetooth Low Energy radio.static final intAn error is encountered during database download.static final intAn error during finalize data to packagestatic final intThis scenario is not supported based on your license and Core framework capabilities.static final intCore framework is absent.static final intThe reader is not initialized or an unknown initialization error occured.static final intFailed to set TCC params.static final intA license is absent or corrupted.static final intdb.dat is incorrect.static final intAn invalid date, i.e.static final intAn invalid device ID.static final intAn invalid OS or application ID.static final intAn invalid version.static final intThere are no authenticity capabilities in your license.static final intThere are no capabilities for this functionality in your license.static final intdb.dat is absent.static final intSomething went wrong with online license processing.static final intOut of memory exceptionstatic final intThere are no results after recognition of camera frames.static final intIncorrect input parameters for online processingstatic final intAn invalid URL of the video during its generating.static final intAn error is encountered during database removal.static final intAn error is encountered during database save on your device.static final intAn error during start backend processingstatic final intAn error describes incorrect state of Document Readerstatic final intMissing input parameters -
Constructor Summary
ConstructorsConstructorDescriptionDocumentReaderException(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
-