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:
General errors
Error Codes and Their Descriptions
Error | Description |
---|---|
ExpiredAuthToken | Returned when the auth token is no longer valid. |
Unauthorized | The user associated with the auth token is not authorized to perform this operation. |
UserNotFound | The current user doesn’t exist or is invalid. |
InternalError | Unexpected internal logic and state errors. |
PreconditionError | The operation was rejected because the system is not in a required state for execution. |
Examples: SDK version mismatch, Backup state inconsistency. | |
InvalidArgs | The client specified invalid argument(s). |
KeysAreNotSynced | The expected keys were not found; call login() again. |
Backup errors
Error | Description |
---|---|
GoogleDriveQueryExecutionFailed | Failed execute query on Google Drive |
GoogleSignInFailed | Failed signing in to Google Drive |
ICloudDisabled | iCloud backup disabled |
ICloudNotSynchronized | iCloud synchronization failed |
FailedSavingDecryptionKey | Failed to synchronize keys backup decryption key to iCloud |
Recover errors
Backup and Decryption Error Codes
Error Code | Description |
---|---|
KeysAreNotBackedUpWithEncryptionKey | Keys were not backed up with the provided encryption key. |
DecryptionInfoRestoreFailed | This error occurs due to the following reasons: 1. Decryption file cannot be found. 2. Failed to restore decryption info. |
CorruptedDecryptionFile | Indicates that the decryption backup file is corrupted. |
GoogleDriveQueryExecutionFailed | Failed to execute a query on Google Drive. |
GoogleSignInFailed | Failed to sign in to Google Drive. |
ICloudDisabled | iCloud backup is disabled. |
ICloudNotSynchronized | iCloud synchronization failed. |