Errors¶
The Exceptions exclusive to uprate.
- exception uprate.errors.RateLimitError(retry_at: float, rate: Rate, *args)[source]¶
Raised when a Rate Limit is violated.
- property retry_after: float¶
The amount of time to retry after in seconds, might be negative if enough time has elapsed
- Type
- __float__() float [source]¶
Return
RateLimitError.retry_after
as a float- Returns
The amount in seconds to retry after.
- Return type
- __int__() int [source]¶
Return
RateLimitError.retry_after
as a ceiled int.- Returns
The ceiled amount of seconds to retry after
- Return type