Exception: Mistri::RateLimitError

Inherits:
ProviderError show all
Defined in:
lib/mistri/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ProviderError

#body, #status

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ProviderError

#describe

Constructor Details

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

Returns a new instance of RateLimitError.



44
45
46
47
# File 'lib/mistri/errors.rb', line 44

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

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



42
43
44
# File 'lib/mistri/errors.rb', line 42

def retry_after
  @retry_after
end

Class Method Details

.default_messageObject



49
# File 'lib/mistri/errors.rb', line 49

def self.default_message = "rate limited"