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.
| Key | Code | Message |
|---|---|---|
| kWalletCreationFailed | 1004 | Wallet creation failed |
| kUserIdAlreadyExists | 1005 | UserId already exists. |
| kSomethingWentWrong | 1007 | Something went wrong!\nPlease try again! |
| kSomeProblemWhileFaceFinding | 1008 | Camera sensor is blocked. |
| kUnauthorizedAccess | 1111 | Unauthorized access. |
| kPublicKeyRequired | 1200 | Public key required. |
| kEncryption | 1201 | Something went wrong with encrypting information. |
| kDecryption | 1202 | Something went wrong with decrypting information. |
| kDocumentDataMandatory | 412000 | Document data is mandatory. |
| kInvalidPP | 412002 | Invalid Passport. |
| kDocumentVerificationFailed | 412004 | Scanned document verification failed. |
| kFaceLivenessCheckFailed | 412006 | LiveID Liveness check failed. |
| KLiveIdTokenValidationFailed | 412007 | LiveID token validation failed. |
| kLiveIDMismatch | 401 | LiveID did not match. |
| kDocumentDataMismatch | 410 | The document data doesn't match with already enrolled document. |
| kDocumentPhotoComparisonFailed | 411 | Your photo on the document does not match with LiveID enrolled on this device. |
| kDocumentExpired | 415 | The document you are trying to enroll is already expired. |
| kDocumentEnrolled | 416 | Document is already enrolled |
| kDocumentPhotoNotFound | 417 | Document photo not found. |
| kLiveIDMandatory | 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_ProofedBy_Is_Mandatory | 425 | Document proofed by is mandatory. |
| K_LiveId_Not_Unenrolled | 426 | LiveID can't be un-enrolled. |
| K_Invalid_Category | 427 | Document category is invalid. |
| K_Document_Not_Exist | 428 | Document does not exist. |
| K_FirstName_Is_Mandatory | 429 | Document first name is mandatory. |
| K_LastName_Is_Mandatory | 430 | Document last name is mandatory. |
| K_DateOfBirth_Is_Mandatory | 431 | Document date of birth is mandatory. |
| K_DateOfExpiry_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_LiveId_Wrong_Enrollment | 436 | LiveID can only be enrolled using setLiveID and registerDocument(with LiveID) methods. |
| K_SSN_Mandatory | 438 | SSN is mandatory. |
| K_REGISTRATION_NOT_ALLOWED | 439 | Registration is not allowed during restoration. |
| kNotTrustedSessionSource | 420 | Session Url is not a trusted session source. |
| kResetSDK | 120 | Reset SDK |
| kPPAboutToExpire | 100001 | This document is about to expire. |
| kPPExpired | 100002 | Expired passport. |
| kInvalidPPBioData | 100004 | Passport Bio-Data not scanned properly. |
| kInvalidPPEChipData | 100005 | Invalid E-Passport Chip Data. |
| kPPRFIDTimeout | 100009 | E-Passport Chip scan timeout. |
| kPPRFIDUserCancelled | 100011 | E-Passport Chip scan was cancelled by user |
| kTenantRegisterFailed | 1001 | Tenant registration fail. |
| 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 |
| kSessionExpired | 413006 | Session has expired. |
| K_KEY_PATH_IS_MANDATORY | 413007 | Key Path is mandatory |
| K_USER_IS_DISABLED | 414001 | User account is disabled. |
| K_USER_IS_LOCKED | 414002 | User account is locked. |