Exception: NakoPay::RateLimitError

Inherits:
APIError show all
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

Methods inherited from APIError

#retryable?

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: message, **kwargs)
end