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.



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

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.



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

def retry_after
  @retry_after
end

Class Method Details

.default_messageObject



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

def self.default_message = "rate limited"