Exception: SDM::RateLimitError

Inherits:
RPCError
  • Object
show all
Defined in:
lib/errors/errors.rb

Overview

RateLimitError is used for rate limit excess condition

Instance Attribute Summary collapse

Attributes inherited from RPCError

#code

Instance Method Summary collapse

Constructor Details

#initialize(msg, rate_limit) ⇒ RateLimitError

Returns a new instance of RateLimitError.



82
83
84
85
# File 'lib/errors/errors.rb', line 82

def initialize(msg, rate_limit)
  @rate_limit = rate_limit
  super(msg, 8)
end

Instance Attribute Details

#rate_limitObject (readonly)

Returns the value of attribute rate_limit.



80
81
82
# File 'lib/errors/errors.rb', line 80

def rate_limit
  @rate_limit
end