Skip to main content
All SDK exceptions inherit from ReyGridError.
Other 4xx/5xx statuses (for example 500) raise the base ReyGridApiError.

Attributes

Handling

Catch subclasses before ReyGridApiError.

Reading error details

code and the message come from the API’s error object, so you can branch on the error code directly:
Before 1.0.3, code was only read from the top level of the body, so most errors surfaced as "UNKNOWN". Upgrade to get the real values.

Retries

The SDK doesn’t retry. Retry ReyGridNetworkError and 5xx ReyGridApiError in your own code, with backoff. Don’t retry 4xx errors without fixing the request.