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 | Description |
---|---|
| Returned when auth token is no longer valid. |
| The user associated with the auth token is not authorized to perform this operation. |
| Current user doesn’t exist or is invalid. |
| Unexpected internal logic and state errors. |
| The operation was rejected because the system is not in a state required for the operation's execution. For example: SDK version mismatch, Backup state inconsistency. |
| The client specified an invalid argument(s). |
| 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
Error | Description |
---|---|
| Keys were not backed up with the provided encryption key |
| Reasons: |
| Corrupted decryption backup file |
| Failed execute query on Google Drive |
| Failed signing in to Google Drive |
| iCloud backup disabled |
| iCloud synchronization failed |