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_CANCELED_PROCESS413005The process is terminated by user
K_CATEGORY_IS_MANDATORY424Document category is mandatory
K_COMMUNITY_NAME_IS_MANDATORY413004Community name is mandatory
K_CONNECTION_ERROR0No internet connection
K_DECRYPTION1202Something went wrong with decrypting information
K_DOB_IS_MANDATORY431Document date of birth is mandatory
K_DOCUMENT_ALREADY_EXPIRED415The document you are trying to enroll is already expired
K_DOCUMENT_DATA_MANDATORY412000Document data is mandatory
K_DOCUMENT_DATA_MIS_MATCH436Your document data doesn't match with enrolled document
K_DOCUMENT_ENROLLED416Document is already enrolled
K_DOCUMENT_NOT_EXISTS428Document does not exist
K_DOCUMENT_VERIFICATION_FAILED412004Scanned document verification failed
K_DOE_IS_MANDATORY432Document date of expiry is mandatory
K_ENCRYPTION1201Something went wrong with encrypting information
K_FACE_IS_MANDATORY433Document face is mandatory
K_FIRSTNAME_IS_MANDATORY429Document first name is mandatory
K_ID_IS_MANDATORY422Document ID is mandatory
K_IMAGE_IS_MANDATORY434Document image is mandatory
K_INVALID_CATEGORY427Document category is invalid
K_INVALID_PP_BIO_DATA100004Passport Bio-Data not scanned properly
K_INVALID_PP_E_CHIP_DATA100005Invalid E-Passport Chip Data
K_LASTNAME_IS_MANDATORY430Document last name is mandatory
K_LIVE_ID_NOT_MATCH401LiveID did not match
K_LIVE_ID_NOT_UN_ENROLLED426LiveID can't be un-enrolled
K_LIVEID_CANNOT_BE_ENROLLED437LiveID can only be enrolled using setLiveID and registerDocument(with LiveID) methods
K_LIVEID_DOC_FACE_NOT_MATCH411Your photo on the document does not match with LiveID enrolled on this device
K_LIVEID_ENROLLED435LiveID is already enrolled
K_LIVEID_IS_MANDATORY421LiveID is mandatory
K_LIVENESS_CHECK_FAILED412006LiveID Liveness check failed
K_NO_MIGRATION_NEEDED418No migration needed
K_NOT_TRUSTED_SESSION_SOURCE420Session Url is not a trusted session source
K_OFFLINE_AUTH_UNSUPPORTED510Unable to login offline with selected account
K_PP_ABOUT_TO_EXPIRE100001This document is about to expire
K_PP_ALREADY_EXPIRED100002Expired passport
K_PP_RFID_TIMEOUT100009E-Passport Chip scan timeout
K_PROOFED_IS_MANDATORY425Document proofed by is mandatory
K_REGISTRATION_NOT_ALLOWED439Registration is not allowed during restoration
K_RESTORE_DOCS_FAILED610Account restoration failed
K_RESTORE_LIVE_ID_FAILED611Your LiveID verification failed
K_SCAN_CANCELLED412007The scanning process is cancelled
K_SCAN_ERROR412008Error occurred during scanning process
K_SDK_RESET120Reset SDK
K_SERVICE_URL_NOT_SET414001Document verification service URL is not set for environment
K_SESSION_EXPIRED413006Session has expired
K_SOMETHING_WENT_WRONG1007Something went wrong!\nPlease try again!
K_SSN_IS_MANDATORY438SSN is mandatory
K_TENANT_DNS_IS_MANDATORY413003Tenant DNS is mandatory
K_TENANT_REGISTRATION_FAIL1001Tenant registration fail
K_TYPE_IS_MANDATORY423Document type is mandatory
K_UNAUTHORIZED_ACCESS1111Unauthorized access
K_USERID_ALREADY_EXITS1005UserId already exists
K_USERNAME_IS_MANDATORY413002Username is mandatory