Exception: SDM::RateLimitError
- Defined in:
- lib/errors/errors.rb
Overview
RateLimitError is used for rate limit excess condition
Instance Attribute Summary collapse
-
#rate_limit ⇒ Object
readonly
Returns the value of attribute rate_limit.
Attributes inherited from RPCError
Instance Method Summary collapse
-
#initialize(msg, rate_limit) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
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_limit ⇒ Object (readonly)
Returns the value of attribute rate_limit.
80 81 82 |
# File 'lib/errors/errors.rb', line 80 def rate_limit @rate_limit end |