Skip to main content
The SDK provides detailed error handling through NoCloudAPIError and the NoCloudError enum.

Basic Error Handling

Check for Specific Errors

Use the static isError method to check for specific error types:

Error Codes

NoCloudAPIError Properties

Retry Logic

The SDK includes built-in retry logic for transient failures. You can configure the retry behavior when initializing:
The SDK will automatically retry failed requests for transient errors (like network issues). It will not retry for client errors like invalid API keys or bad requests.

Handling Rate Limits

When you exceed the rate limit, the SDK throws a RATE_LIMIT_EXCEEDED error: