Exception: Walinko::RateLimitError
- Defined in:
- lib/walinko/errors.rb
Overview
429 — sliding-window rate limit (default 30 req/min/key) exceeded. ‘#retry_after` is the recommended sleep in seconds (parsed from `Retry-After` header).
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from ApiError
#body, #details, #error_code, #http_status, #request_id
Instance Method Summary collapse
-
#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from ApiError
Constructor Details
#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitError
Returns a new instance of RateLimitError.
98 99 100 101 |
# File 'lib/walinko/errors.rb', line 98 def initialize(, retry_after: nil, **kwargs) super(, **kwargs) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
96 97 98 |
# File 'lib/walinko/errors.rb', line 96 def retry_after @retry_after end |