Exception: HumanTone::Errors::RateLimitError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#details, #error_code, #request_id, #status_code

Instance Method Summary collapse

Methods inherited from Error

#inspect, #retryable?

Constructor Details

#initialize(message, retry_after_seconds: 0) ⇒ RateLimitError

Returns a new instance of RateLimitError.



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

def initialize(message, retry_after_seconds: 0, **)
  super(message, **)
  @retry_after_seconds = retry_after_seconds
end

Instance Attribute Details

#retry_after_secondsObject (readonly)

Returns the value of attribute retry_after_seconds.



58
59
60
# File 'lib/humantone/errors.rb', line 58

def retry_after_seconds
  @retry_after_seconds
end