Exception: Certynix::RateLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/certynix/errors.rb

Overview

HTTP 429

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #request_id, #status_code

Instance Method Summary collapse

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: message, code: code, request_id: request_id, status_code: 429)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



60
61
62
# File 'lib/certynix/errors.rb', line 60

def retry_after
  @retry_after
end