Skip to main content

Error handling

The SDK throws custom unchecked exception types:

Retries

The SDK automatically retries 2 times by default, with a short exponential backoff between requests. Only the following error types are retried:
  • Connection errors (for example, due to a network connectivity problem)
  • 408 Request Timeout
  • 409 Conflict
  • 429 Rate Limit
  • 5xx Internal
The API may also explicitly instruct the SDK to retry or not retry a request. To set a custom number of retries, configure the client using the maxRetries method:

Timeouts

Requests time out after 1 minute by default. To set a custom timeout, configure the method call using the timeout method:
Or configure the default for all method calls at the client level: