Exception: ReveAI::RateLimitError
- Defined in:
- lib/reve_ai/errors.rb
Overview
Raised on 429 Too Many Requests responses.
Indicates the rate limit has been exceeded. Check #retry_after to determine when to retry.
Instance Attribute Summary
Attributes inherited from APIError
Instance Method Summary collapse
-
#retry_after ⇒ Integer?
Returns the retry-after header value in seconds.
Methods inherited from APIError
#error_code, #initialize, #request_id
Constructor Details
This class inherits a constructor from ReveAI::APIError
Instance Method Details
#retry_after ⇒ Integer?
Returns the retry-after header value in seconds.
Indicates how long to wait before retrying the request.
179 180 181 |
# File 'lib/reve_ai/errors.rb', line 179 def retry_after headers["retry-after"]&.to_i end |