Exception: Pago::RateLimitError
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- APIError
- ClientError
- Pago::RateLimitError
- Defined in:
- lib/pago/errors.rb
Overview
Raised for 429 responses.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#retry_after ⇒ Integer?
readonly
The value of the Retry-After header, in seconds.
Attributes inherited from APIError
#body, #data, #response, #status_code
Instance Method Summary collapse
-
#initialize(message = nil, retry_after: nil, **options) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message = nil, retry_after: nil, **options) ⇒ RateLimitError
Returns a new instance of RateLimitError.
54 55 56 57 |
# File 'lib/pago/errors.rb', line 54 def initialize( = nil, retry_after: nil, **) @retry_after = retry_after super(, **) end |
Instance Attribute Details
#retry_after ⇒ Integer? (readonly)
Returns the value of the Retry-After header, in seconds.
52 53 54 |
# File 'lib/pago/errors.rb', line 52 def retry_after @retry_after end |