Exception: Equipoise::RateLimitError

Inherits:
ApiError show all
Defined in:
lib/equipoise/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#code, #details, #response, #status

Instance Method Summary collapse

Methods inherited from ApiError

class_for, default_message, from_response, #retryable?

Methods inherited from Error

#retryable?

Constructor Details

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

Returns a new instance of RateLimitError.



124
125
126
127
# File 'lib/equipoise/errors.rb', line 124

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

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



122
123
124
# File 'lib/equipoise/errors.rb', line 122

def retry_after
  @retry_after
end