Skip to main content
The SDK throws typed error classes for different failure scenarios. All errors extend RoyaltyportError, which extends the built-in Error class.

Error Classes

Properties

All error classes include: RoyaltyportRateLimitError also includes:

Usage


Automatic Retries

The SDK automatically retries requests on 429 and 5xx errors:
  • Up to 3 retries per request
  • Exponential backoff starting at 500ms (max 60s)
  • Retry-After headers from rate limit responses are respected
No configuration is required. If all retries are exhausted, the corresponding error is thrown.