Exception: HumanTone::Errors::RateLimitError
- Defined in:
- lib/humantone/errors.rb
Instance Attribute Summary collapse
-
#retry_after_seconds ⇒ Object
readonly
Returns the value of attribute retry_after_seconds.
Attributes inherited from Error
#details, #error_code, #request_id, #status_code
Instance Method Summary collapse
-
#initialize(message, retry_after_seconds: 0) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from Error
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(, retry_after_seconds: 0, **) super(, **) @retry_after_seconds = retry_after_seconds end |
Instance Attribute Details
#retry_after_seconds ⇒ Object (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 |