RateLimitException

class RateLimitException(statusCode: Int, error: VolvoApiError, throwable: Throwable? = null) : VolvoAPIException(source)

Exception thrown when the API rate limit is exceeded (HTTP 429).

Standard rate limits: 100 requests/minute for status endpoints, 10 requests/minute for command endpoints. Consider using com.github.ayastrebov.volvo.api.core.RetryStrategy for automatic retry with backoff.

Constructors

Link copied to clipboard
constructor(statusCode: Int, error: VolvoApiError, throwable: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

The parsed error response body with code, message, and details.

Link copied to clipboard
expect open val message: String?
Link copied to clipboard

The HTTP status code returned by the API.