Exception: Attio::RateLimitError

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

Overview

Raised when rate limit is exceeded (429)

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, retry_after: nil, **options) ⇒ RateLimitError

Returns a new instance of RateLimitError.

Since:

  • 1.0.0



28
29
30
31
# File 'lib/attio/errors.rb', line 28

def initialize(message = nil, retry_after: nil, **options)
  @retry_after = retry_after
  super(message, **options)
end

Instance Attribute Details

#retry_afterObject (readonly)

Since:

  • 1.0.0



26
27
28
# File 'lib/attio/errors.rb', line 26

def retry_after
  @retry_after
end