Exception: Ksef::RateLimitError
- Defined in:
- lib/ksef/errors.rb
Overview
Raised when the API returns 429. ‘retry_after` is in seconds when known.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, body: nil, code: nil, retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message = nil, status: nil, body: nil, code: nil, retry_after: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
39 40 41 42 |
# File 'lib/ksef/errors.rb', line 39 def initialize( = nil, status: nil, body: nil, code: nil, retry_after: nil) super(, status: status, body: body, code: code) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
37 38 39 |
# File 'lib/ksef/errors.rb', line 37 def retry_after @retry_after end |