Exception: Desiru::RateLimitError

Inherits:
NetworkError show all
Defined in:
lib/desiru/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#context, #original_error

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RateLimitError.



48
49
50
51
# File 'lib/desiru/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/desiru/errors.rb', line 46

def retry_after
  @retry_after
end