Exception: Whitebox::RateLimitError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#response, #status_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RateLimitError.



18
19
20
21
# File 'lib/whitebox/errors.rb', line 18

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

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



16
17
18
# File 'lib/whitebox/errors.rb', line 16

def retry_after
  @retry_after
end