Exception: Zazu::RateLimitError
- Defined in:
- lib/zazu/errors.rb
Overview
429 — rate limited. Retry after the ‘Retry-After` header (seconds).
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#body, #param, #request_id, #status, #type
Instance Method Summary collapse
-
#initialize(message = nil, retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from Error
Constructor Details
#initialize(message = nil, retry_after: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
53 54 55 56 |
# File 'lib/zazu/errors.rb', line 53 def initialize( = nil, retry_after: nil, **) super(, **) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
51 52 53 |
# File 'lib/zazu/errors.rb', line 51 def retry_after @retry_after end |