Get SDK Error Info
❗ REL-ID SDK API Documentation: getErrorInfo
📘 Overview
The getErrorInfo
API is used to retrieve a human-readable error string corresponding to a given REL-ID SDK error code. This helps mobile developers translate numeric codes into actionable messages or logs.
🎯 Purpose
Use this API to:
- Display user-friendly error messages based on SDK error codes.
- Log technical error details for debugging.
- Aid in troubleshooting and support workflows.
🔁 API Flow
- Capture the error code from a failed SDK API call.
- Call
getErrorInfo(errorCode)
. - Use the returned string to display/log the error.
🧾 Parameters
Field | Type | Description |
---|---|---|
errorCode | int | The error code returned from any SDK API |
🧾 Response
Returns a String
representing the human-readable error message.
🔧 Example
"Invalid arguments passed to API."
💻 Code Snippets
GetErrorInfo API not applicable for the React Native and Flutter development frameworks.
Cordova
com.uniken.rdnaplugin.RdnaClient.getErrorInfo(successCallback, errorCallback, [errorCode]);
Native iOS
NSString* errorMessage = [rdnaClient getErrorInfo:errorCode];
Native Android
String errorMessage = rdnaClient.getErrorInfo(errorCode);
⚠️ Error Codes
Code | Description |
---|---|
0 | Success |
4 | RDNA_ERR_INVALID_ARGS |
88 | RDNA_ERR_RDNA_ALREADY_INITIALIZED |
... | (Refer to full SDK error list) |
🧠 Developer Notes
- Ideal for debugging and error analysis.
- Should be used with every SDK callback that includes an error code.
- Avoid displaying raw numeric codes to users—use
getErrorInfo
instead.
Updated 3 months ago