Exception: Certynix::RateLimitError
- Defined in:
- lib/certynix/errors.rb
Overview
HTTP 429
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#code, #request_id, #status_code
Instance Method Summary collapse
-
#initialize(message:, code:, request_id: nil, retry_after: 0) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message:, code:, request_id: nil, retry_after: 0) ⇒ RateLimitError
Returns a new instance of RateLimitError.
62 63 64 65 |
# File 'lib/certynix/errors.rb', line 62 def initialize(message:, code:, request_id: nil, retry_after: 0) super(message: , code: code, request_id: request_id, status_code: 429) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
60 61 62 |
# File 'lib/certynix/errors.rb', line 60 def retry_after @retry_after end |