Add logging and error handling facilities to embedded SDKs.
The pages in this section provide instructions for implementing logging and error handling for the following Fordefi SDKs:
Error codes
The following are the error codes that the different SDKs can return, with a description of each:
Code | Error |
---|---|
1000 | unexpectedError |
1001 | networkRequestFailed |
1002 | unauthorized |
1003 | expiredAuthToken |
2001 | generateKeysetFailed |
2002 | generateKeysetAlreadySynced |
2003 | generateKeysetRecoveryRequired |
2004 | invalidKeysetIDFormat |
2005 | generateKeysetIdNotFound |
3001 | signTransactionFailed |
3002 | userNotAllowedToSignError |
3003 | invalidTransactionIDFormat |
3004 | invalidTransactionState |
4001 | listKeysetsFailed |
5001 | setConfigurationFailed |
6001 | backupKeysetFailed |
6002 | backupFailedEncryptUnsupportedMethod |
6003 | backupFailedEncryptInvalidKeySize |
6004 | backupFailedEncryptLocalShares |
6005 | backupFailedUploadShares |
6006 | backupFailedKeysetNotFound |
6007 | backupFailedIllegalBase64Data |
6008 | backupFailedGetEncryptedDeviceShares |
6009 | backupFailedSymEncryptText |
6010 | backupFailedMissingProvider |
6011 | backupFailedICloudDisabled |
6012 | backupFailedICloudNotSynchronized |
6013 | googleSignInFailed |
6014 | googleDriveQueryExecutionFailed |
6015 | backupFailedSavingDecryptionKey |
7001 | recoverKeysetFailed |
7002 | recoverFailedEncryptUnsupportedMethod |
7003 | recoverFailedEncryptInvalidKeySize |
7004 | recoverFailedDecryptLocalShares |
7006 | recoverFailedKeysetNotBackedUp |
7007 | recoverFailedIllegalBase64Data |
7008 | recoverFailedICloudDisabled |
7009 | recoverFailedDecryptionInfoRestoreFailed |
7010 | recoverFailedICloudNotSynchronized |
7011 | recoverFailedCorruptedDecryptionFile |
7012 | recoverFailedMissingProvider |
8001 | isKeysetSyncedFailed |
9001 | generateEncryptionKeyFailed |