Error handling
As the React Native SDK is a wrapper for the Android and iOS SDKs, many errors that are returned come directly from the native SDKs themselves. This is true for error codes in the ranges 9000 and higher.
These error codes are mostly consistent for the wrapper. However, there may be some small differences between the native platform errors. Every error returned from the SDK is an object that contains a code and description property. These can provide helpful information on how to recover from or handle a given error.
Every error returned from the SDK is an object that contains a code
and description
property. These can provide helpful information on how to recover from or handle a given error.
SDK error overview
Error Code | Category | Scenario Occurrences | Platforms |
---|---|---|---|
8000 | GENERIC ERROR | - Android & iOS | |
8001 | OBJECT DOES NOT EXIST | - User profile | - Android & iOS |
8002 | NOT AUTHENTICATED | - User | - Android & iOS |
8004 | OBJECT NOT FOUND | - Authenticator - Identity provider - Security Controller |
- Android & iOS - Android & iOS - Android |
8011 | HTTP REQUEST ERROR | - Internal - HTTP Code - No Response |
- Android & iOS - Android & iOS - iOS |
8012 | NOT INITIALIZED | - Onewelcome SDK | - Android |
8014 | INVALID URL | - iOS | |
8016 | ENROLLMENT FAILED | - iOS | |
8017 | PROCESS CANCELED | - Authentication - Registration - Login - Authenticator Registration - Authenticator Deregistration |
- iOS - iOS - iOS - iOS - iOS |
8023 |