Logging and Error Handling

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:

CodeError
1000unexpectedError
1001networkRequestFailed
1002unauthorized
1003expiredAuthToken
2001generateKeysetFailed
2002generateKeysetAlreadySynced
2003generateKeysetRecoveryRequired
2004invalidKeysetIDFormat
2005generateKeysetIdNotFound
3001signTransactionFailed
3002userNotAllowedToSignError
3003invalidTransactionIDFormat
3004invalidTransactionState
4001listKeysetsFailed
5001setConfigurationFailed
6001backupKeysetFailed
6002backupFailedEncryptUnsupportedMethod
6003backupFailedEncryptInvalidKeySize
6004backupFailedEncryptLocalShares
6005backupFailedUploadShares
6006backupFailedKeysetNotFound
6007backupFailedIllegalBase64Data
6008backupFailedGetEncryptedDeviceShares
6009backupFailedSymEncryptText
6010backupFailedMissingProvider
6011backupFailedICloudDisabled
6012backupFailedICloudNotSynchronized
6013googleSignInFailed
6014googleDriveQueryExecutionFailed
6015backupFailedSavingDecryptionKey
7001recoverKeysetFailed
7002recoverFailedEncryptUnsupportedMethod
7003recoverFailedEncryptInvalidKeySize
7004recoverFailedDecryptLocalShares
7006recoverFailedKeysetNotBackedUp
7007recoverFailedIllegalBase64Data
7008recoverFailedICloudDisabled
7009recoverFailedDecryptionInfoRestoreFailed
7010recoverFailedICloudNotSynchronized
7011recoverFailedCorruptedDecryptionFile
7012recoverFailedMissingProvider
8001isKeysetSyncedFailed
9001generateEncryptionKeyFailed