Exception: Wave::RateLimitError
- Defined in:
- lib/wave/errors.rb
Overview
Raised on HTTP 429 once the retry budget is exhausted.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#code, #details, #request_id, #retryable, #status_code
Instance Method Summary collapse
-
#initialize(message, retry_after:, request_id: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from Error
Constructor Details
#initialize(message, retry_after:, request_id: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
30 31 32 33 |
# File 'lib/wave/errors.rb', line 30 def initialize(, retry_after:, request_id: nil) super(, code: "RATE_LIMITED", status_code: 429, request_id: request_id) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
28 29 30 |
# File 'lib/wave/errors.rb', line 28 def retry_after @retry_after end |