Exception: Attio::RateLimitError

Inherits:
ClientError show all
Defined in:
lib/attio/errors.rb

Overview

422

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #request_id, #response

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



52
53
54
55
# File 'lib/attio/errors.rb', line 52

def initialize(message, response = nil)
  super
  @retry_after = extract_retry_after(response) if response
end

Instance Attribute Details

#retry_afterObject (readonly)

429



50
51
52
# File 'lib/attio/errors.rb', line 50

def retry_after
  @retry_after
end