RateLimitException class

429 rate_limited — the per-key rate limit was hit. Honor retryAfter before retrying.

Inheritance

Constructors

RateLimitException(String message, {Duration? retryAfter, String? code, int? statusCode})
const

Properties

code String?
Machine-readable error code from the backend (e.g. invalid_api_key, rate_limited, quota_exceeded, auth_unavailable), when available.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable error message.
finalinherited
retryAfter Duration?
Server-suggested wait before retrying (from the Retry-After header), when provided.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP status code of the failed response, when available.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited