Skip to main content

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
codeint: The error code.
messageString: The message associated with error code.

For more information on error codes, see the Error Codes section below.

Method Summary​

ParameterDescription
intgetCode()Returns error code.
StringgetMessage()Returns error message.

Method Details​

MethodSignatureDescription
getCodepublic int getCode()Returns error code.
getMessagepublic String getMessage()Returns error message.

Error Codes​

The table below lists the error code and its message.

KeyCodeMessage
K_CONNECTION_ERROR0No internet connection
K_TENANT_REGISTRATION_FAIL1001Tenant registration fail
K_USERID_ALREADY_EXITS1005UserId already exists
K_SOMETHING_WENT_WRONG1007Something went wrong!\nPlease try again!
K_UNAUTHORIZED_ACCESS1111Unauthorized access
K_SECURITY_UPDATE_REQUIRED1112The 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_MATCH401LiveID did not match
K_LIVEID_DOC_FACE_NOT_MATCH411Your photo on the document does not match with LiveID enrolled on this device.
K_DOCUMENT_ALREADY_EXPIRED415The document you are trying to enroll is already expired.
K_DOCUMENT_ENROLLED416Document is already enrolled
K_NOT_TRUSTED_SESSION_SOURCE420Session Url is not a trusted session source
K_LIVEID_IS_MANDATORY421LiveID is mandatory
K_ID_IS_MANDATORY422Document ID is mandatory
K_TYPE_IS_MANDATORY423Document type is mandatory
K_CATEGORY_IS_MANDATORY424Document category is mandatory
K_PROOFED_IS_MANDATORY425Document proofed by is mandatory
K_LIVE_ID_NOT_UN_ENROLLED426LiveID can't be un-enrolled
K_INVALID_CATEGORY427Document category is invalid
K_DOCUMENT_NOT_EXISTS428Document does not exist
K_FIRSTNAME_IS_MANDATORY429Document firstname is mandatory
K_LASTNAME_IS_MANDATORY430Document last name is mandatory
K_DOB_IS_MANDATORY431Document date of birth is mandatory.
K_DOE_IS_MANDATORY432Document date of expiry is mandatory.
K_FACE_IS_MANDATORY433Document face is mandatory
K_IMAGE_IS_MANDATORY434Document image is mandatory
K_LIVEID_ENROLLED435LiveID is already enrolled
K_DOCUMENT_DATA_MIS_MATCH436Your document data doesn't match with enrolled document
K_LIVEID_CANNOT_BE_ENROLLED437LiveID can only be enrolled using setLiveID and registerDocument(with LiveID) methods.
K_SSN_IS_MANDATORY438SSN is mandatory
K_REGISTRATION_NOT_ALLOWED439Registration is not allowed during restoration.
K_PP_ABOUT_TO_EXPIRE100001This document is about to expire
K_PP_ALREADY_EXPIRED100002Expired passport.
K_INVALID_PP_BIO_DATA100004Passport Bio-Data not scanned properly
K_INVALID_PP_E_CHIP_DATA100005Invalid E-Passport Chip Data
K_PP_RFID_TIMEOUT100009E-Passport Chip scan timeout.
K_RESTORE_DOCS_FAILED610Account restoration failed.
K_RESTORE_LIVE_ID_FAILED611Your LiveID verification failed.
K_ENCRYPTION1201Something went wrong with encrypting information
K_DECRYPTION1202Something went wrong with decrypting information
K_DOCUMENT_DATA_MANDATORY412000Document data is mandatory
K_DOCUMENT_VERIFICATION_FAILED412004Scanned document verification failed
K_LIVENESS_CHECK_FAILED412006LiveID liveness check failed
K_LIVEID_TOKEN_VALIDATION_FAIL412007LiveID token validation failed
K_SDK_RESET120Reset SDK
K_USERNAME_IS_MANDATORY413002Username is mandatory
K_TENANT_DNS_IS_MANDATORY413003Tenant DNS is mandatory
K_COMMUNITY_NAME_IS_MANDATORY413004Community name is mandatory
K_TENANT_MANDATORY413005BIDTenant is mandatory
K_KEY_PATH_IS_MANDATORY413006Key Path is mandatory
K_USER_IS_DISABLED414001User account is disabled.
K_USER_IS_LOCKED414002User account is locked.
K_GMS_SERVICE_REQUIRED414003GMS service is required to use this feature.
K_ANDROID_SYSTEM_WEBVIEW_REQUIRED414004Android System WebView is required to use this feature.