Skip to main content

Overview

The RunAnywhere SDK provides structured error handling through SDKError with specific error codes and categories. This guide covers error types, handling patterns, and recovery strategies.

SDKError Structure

Checking for SDK Errors

Error Codes

General Errors

Model Errors

Generation Errors

Voice Errors

Resource Errors

Network/Auth Errors

Error Categories

Handling Patterns

Comprehensive Error Handler

Category-Based Handling

React Hook for Error Handling

useSDKError.ts

Error Display Component

ErrorDisplay.tsx

Creating Custom Errors

Logging Errors

Configuration

SDK configuration

Best Practices

Optimization tips