class Chatrix::RateLimitError

Error raised when the API request limit is reached.

Attributes

retry_delay[R]

@return [Fixnum,nil] number of milliseconds to wait before attempting

this request again. If no delay was provided this will be `nil`.

Public Class Methods

new(error = {}) click to toggle source

Initializes a new RateLimitError instance. @param error [Hash] The error response object.

Calls superclass method Chatrix::ApiError::new
# File lib/chatrix/errors.rb, line 43
def initialize(error = {})
  super
  @retry_delay = error['retry_after_ms'] if error.key? 'retry_after_ms'
end