CustomErrors
public class CustomErrors extends Object
↳ package com.onekosmos.blockid.sdk.BIDAPIs.APIManager.ErrorManager
Utility class to manage various error codes and messages.
Constructor
public CustomErrors(int code, String message)
- Creates an object of CustomErrors class.
| Parameters | |
|---|---|
| code | int: The error code. |
| message | String: The message associated with error code. |
For more information on error codes, see the Error Codes section below.
Method Summary
| Parameter | Description |
|---|---|
| int | getCode()Returns error code. |
| String | getMessage()Returns error message. |
Method Details
| Method | Signature | Description |
|---|---|---|
| getCode | public int getCode() | Returns error code. |
| getMessage | public String getMessage() | Returns error message. |
Error Codes
The table below lists the error code and its message.
| Key | Code | Message |
|---|---|---|
| K_CONNECTION_ERROR | 0 | No internet connection |
| K_TENANT_REGISTRATION_FAIL | 1001 | Tenant registration fail |
| K_USERID_ALREADY_EXITS | 1005 | UserId already exists |
| K_SOMETHING_WENT_WRONG | 1007 | Something went wrong!\nPlease try again! |
| K_UNAUTHORIZED_ACCESS | 1111 | Unauthorized access |
| K_SECURITY_UPDATE_REQUIRED | 1112 | The user can't authenticate because a security vulnerability has been discovered with one or more hardware sensors. The affected sensor(s) are unavailable until a security update has addressed the issue. |
| K_LIVE_ID_NOT_MATCH | 401 | LiveID did not match |
| K_LIVEID_DOC_FACE_NOT_MATCH | 411 | Your photo on the document does not match with LiveID enrolled on this device. |
| K_DOCUMENT_ALREADY_EXPIRED | 415 | The document you are trying to enroll is already expired. |
| K_DOCUMENT_ENROLLED | 416 | Document is already enrolled |
| K_NOT_TRUSTED_SESSION_SOURCE | 420 | Session Url is not a trusted session source |
| K_LIVEID_IS_MANDATORY | 421 | LiveID is mandatory |
| K_ID_IS_MANDATORY | 422 | Document ID is mandatory |
| K_TYPE_IS_MANDATORY | 423 | Document type is mandatory |
| K_CATEGORY_IS_MANDATORY | 424 | Document category is mandatory |
| K_PROOFED_IS_MANDATORY | 425 | Document proofed by is mandatory |
| K_LIVE_ID_NOT_UN_ENROLLED | 426 | LiveID can't be un-enrolled |
| K_INVALID_CATEGORY | 427 | Document category is invalid |
| K_DOCUMENT_NOT_EXISTS | 428 | Document does not exist |
| K_FIRSTNAME_IS_MANDATORY | 429 | Document firstname is mandatory |
| K_LASTNAME_IS_MANDATORY | 430 | Document last name is mandatory |
| K_DOB_IS_MANDATORY | 431 | Document date of birth is mandatory. |
| K_DOE_IS_MANDATORY | 432 | Document date of expiry is mandatory. |
| K_FACE_IS_MANDATORY | 433 | Document face is mandatory |
| K_IMAGE_IS_MANDATORY | 434 | Document image is mandatory |
| K_LIVEID_ENROLLED | 435 | LiveID is already enrolled |
| K_DOCUMENT_DATA_MIS_MATCH | 436 | Your document data doesn't match with enrolled document |
| K_LIVEID_CANNOT_BE_ENROLLED | 437 | LiveID can only be enrolled using setLiveID and registerDocument(with LiveID) methods. |
| K_SSN_IS_MANDATORY | 438 | SSN is mandatory |
| K_REGISTRATION_NOT_ALLOWED | 439 | Registration is not allowed during restoration. |
| K_PP_ABOUT_TO_EXPIRE | 100001 | This document is about to expire |
| K_PP_ALREADY_EXPIRED | 100002 | Expired passport. |
| K_INVALID_PP_BIO_DATA | 100004 | Passport Bio-Data not scanned properly |
| K_INVALID_PP_E_CHIP_DATA | 100005 | Invalid E-Passport Chip Data |
| K_PP_RFID_TIMEOUT | 100009 | E-Passport Chip scan timeout. |
| K_RESTORE_DOCS_FAILED | 610 | Account restoration failed. |
| K_RESTORE_LIVE_ID_FAILED | 611 | Your LiveID verification failed. |
| K_ENCRYPTION | 1201 | Something went wrong with encrypting information |
| K_DECRYPTION | 1202 | Something went wrong with decrypting information |
| K_DOCUMENT_DATA_MANDATORY | 412000 | Document data is mandatory |
| K_DOCUMENT_VERIFICATION_FAILED | 412004 | Scanned document verification failed |
| K_LIVENESS_CHECK_FAILED | 412006 | LiveID liveness check failed |
| K_LIVEID_TOKEN_VALIDATION_FAIL | 412007 | LiveID token validation failed |
| K_SDK_RESET | 120 | Reset SDK |
| K_USERNAME_IS_MANDATORY | 413002 | Username is mandatory |
| K_TENANT_DNS_IS_MANDATORY | 413003 | Tenant DNS is mandatory |
| K_COMMUNITY_NAME_IS_MANDATORY | 413004 | Community name is mandatory |
| K_TENANT_MANDATORY | 413005 | BIDTenant is mandatory |
| K_KEY_PATH_IS_MANDATORY | 413006 | Key Path is mandatory |
| K_USER_IS_DISABLED | 414001 | User account is disabled. |
| K_USER_IS_LOCKED | 414002 | User account is locked. |
| K_GMS_SERVICE_REQUIRED | 414003 | GMS service is required to use this feature. |
| K_ANDROID_SYSTEM_WEBVIEW_REQUIRED | 414004 | Android System WebView is required to use this feature. |