Error handling
Introduction
This topic guide describes the errors that can be returned from the OneWelcome ReactNative SDK.
SDK error codes
As the OneWelcome 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. See the error handling documentation for the Android SDK and the iOS SDK for details. Both sets of documentation also include a helpful error map at the bottom of the page.
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\n- Identity provider\n- Security Controller | - Android & iOS\n- Android & iOS\n- Android |
8011 | HTTP REQUEST ERROR | - Internal\n- HTTP Code\n- No Response | - Android & iOS\n- Android & iOS\n- iOS |
8012 | NOT INITIALIZED | - Onewelcome SDK | - Android |
8014 | INVALID URL | - iOS | |
8016 | ENROLLMENT FAILED | - iOS | |
8017 | PROCESS CANCELED | - Authentication\n- Registration\n- Login\n- Authenticator Registration\n- Authenticator Deregistration | - iOS\n- iOS\n- iOS\n- iOS\n- iOS |
8023 |