Exception: HumanTone::Errors::DailyLimitExceededError

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, time_to_next_renew: nil) ⇒ DailyLimitExceededError

Returns a new instance of DailyLimitExceededError.



91
92
93
94
# File 'lib/humantone/errors.rb', line 91

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

Instance Attribute Details

#time_to_next_renewObject (readonly)

Returns the value of attribute time_to_next_renew.



89
90
91
# File 'lib/humantone/errors.rb', line 89

def time_to_next_renew
  @time_to_next_renew
end