Exception: NakoPay::RateLimitError
- Defined in:
- lib/nakopay/errors.rb
Overview
Raised for 429 responses after all retries are exhausted.
Instance Attribute Summary
Attributes inherited from APIError
#code, #doc_url, #param, #request_id, #status_code, #type
Instance Method Summary collapse
-
#initialize(message: "Rate limit exceeded", **kwargs) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from APIError
Constructor Details
#initialize(message: "Rate limit exceeded", **kwargs) ⇒ RateLimitError
Returns a new instance of RateLimitError.
36 37 38 39 40 |
# File 'lib/nakopay/errors.rb', line 36 def initialize(message: "Rate limit exceeded", **kwargs) kwargs[:code] ||= "rate_limit_error" kwargs[:type] ||= "rate_limit_error" super(message: , **kwargs) end |