Exception: Postio::RateLimitError
- Defined in:
- lib/postio/errors.rb
Overview
429 — rate limited. #retry_after is the API’s suggested wait in seconds.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#cause_error, #details, #envelope, #error_code, #request_id, #status
Instance Method Summary collapse
-
#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitError
Returns a new instance of RateLimitError.
36 37 38 39 |
# File 'lib/postio/errors.rb', line 36 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.
34 35 36 |
# File 'lib/postio/errors.rb', line 34 def retry_after @retry_after end |