Skip to main content

CustomErrors

public struct CustomErrors


Utility to manage various error codes and messages.

Error Codes​

The table below lists all error codes and messages provided by BlockID SDK.

KeyCodeMessage
kWalletCreationFailed1004Wallet creation failed
kUserIdAlreadyExists1005UserId already exists.
kSomethingWentWrong1007Something went wrong!\nPlease try again!
kSomeProblemWhileFaceFinding1008Camera sensor is blocked.
kUnauthorizedAccess1111Unauthorized access.
kPublicKeyRequired1200Public key required.
kEncryption1201Something went wrong with encrypting information.
kDecryption1202Something went wrong with decrypting information.
kDocumentDataMandatory412000Document data is mandatory.
kInvalidPP412002Invalid Passport.
kDocumentVerificationFailed412004Scanned document verification failed.
kFaceLivenessCheckFailed412006LiveID Liveness check failed.
KLiveIdTokenValidationFailed412007LiveID token validation failed.
kLiveIDMismatch401LiveID did not match.
kDocumentDataMismatch410The document data doesn't match with already enrolled document.
kDocumentPhotoComparisonFailed411Your photo on the document does not match with LiveID enrolled on this device.
kDocumentExpired415The document you are trying to enroll is already expired.
kDocumentEnrolled416Document is already enrolled
kDocumentPhotoNotFound417Document photo not found.
kLiveIDMandatory421LiveID is mandatory.
K_Id_Is_Mandatory422Document ID is mandatory.
K_Type_Is_Mandatory423Document type is mandatory.
K_Category_Is_Mandatory424Document category is mandatory.
K_ProofedBy_Is_Mandatory425Document proofed by is mandatory.
K_LiveId_Not_Unenrolled426LiveID can't be un-enrolled.
K_Invalid_Category427Document category is invalid.
K_Document_Not_Exist428Document does not exist.
K_FirstName_Is_Mandatory429Document first name is mandatory.
K_LastName_Is_Mandatory430Document last name is mandatory.
K_DateOfBirth_Is_Mandatory431Document date of birth is mandatory.
K_DateOfExpiry_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_LiveId_Wrong_Enrollment436LiveID can only be enrolled using setLiveID and registerDocument(with LiveID) methods.
K_SSN_Mandatory438SSN is mandatory.
K_REGISTRATION_NOT_ALLOWED439Registration is not allowed during restoration.
kNotTrustedSessionSource420Session Url is not a trusted session source.
kResetSDK120Reset SDK
kPPAboutToExpire100001This document is about to expire.
kPPExpired100002Expired passport.
kInvalidPPBioData100004Passport Bio-Data not scanned properly.
kInvalidPPEChipData100005Invalid E-Passport Chip Data.
kPPRFIDTimeout100009E-Passport Chip scan timeout.
kPPRFIDUserCancelled100011E-Passport Chip scan was cancelled by user
kTenantRegisterFailed1001Tenant registration fail.
K_TENANT_DNS_IS_MANDATORY413003Tenant DNS is mandatory.
K_COMMUNITY_NAME_IS_MANDATORY413004Community name is mandatory.
K_TENANT_MANDATORY413005BIDTenant is mandatory
kSessionExpired413006Session has expired.
K_KEY_PATH_IS_MANDATORY413007Key Path is mandatory
K_USER_IS_DISABLED414001User account is disabled.
K_USER_IS_LOCKED414002User account is locked.