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

  1. Capture the error code from a failed SDK API call.
  2. Call getErrorInfo(errorCode).
  3. Use the returned string to display/log the error.

🧾 Parameters

FieldTypeDescription
errorCodeintThe 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

CodeDescription
0Success
4RDNA_ERR_INVALID_ARGS
88RDNA_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.