Skip to main content

Overview

The SDK provides typed error classes for different failure scenarios. Some errors are retryable (network issues, rate limits), while others require code changes (validation, auth).

Error Types

Basic Error Handling

Error Properties

All Refine errors extend RefineError and include:

Retry Strategies

For retryable errors, implement exponential backoff:

Global Error Handler

Set a global error handler in configuration:

Error Handling by Feature

Recommendations

Event Tracking

Event tracking is designed to be fire-and-forget, but you can handle errors:

User-Facing Error Messages

Map errors to user-friendly messages:

Debugging Errors

Enable debug mode for detailed error information:

Error Monitoring Integration

Integrate with error monitoring services:

Handling Specific Scenarios

Rate Limiting

Network Offline

Next Steps

SDK Configuration

Configure error handling globally

Debug Plugin

Debug errors in development