Skip to main content

Exception Hierarchy

All exceptions implement Dart’s Exception interface and expose message and statusCode.

Catching Errors


Retry Behavior

The SDK automatically retries 429 and 5xx responses with exponential backoff:
AttemptDelay
1st retry1 second
2nd retry2 seconds
3rd retry4 seconds
404 and 400 are thrown immediately without retrying.

Safe Get Pattern


Error Properties

PropertyTypeDescription
messageStringError message from the API
statusCodeint?HTTP status code