Class: Glia::Errors::TooManyRequestsError

Inherits:
Error
  • Object
show all
Defined in:
lib/glia/errors/client_errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ TooManyRequestsError

Returns a new instance of TooManyRequestsError.



483
484
485
486
487
488
489
# File 'lib/glia/errors/client_errors.rb', line 483

def initialize(message: nil)
  super(
    type: TOO_MANY_REQUESTS_ERROR,
    ref: create_ref(TOO_MANY_REQUESTS_ERROR),
    message: message || 'Too Many Requests'
  )
end