Class: Glia::Errors::TelephonyProviderRateLimitExceededError

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) ⇒ TelephonyProviderRateLimitExceededError

Returns a new instance of TelephonyProviderRateLimitExceededError.



318
319
320
321
322
323
324
# File 'lib/glia/errors/client_errors.rb', line 318

def initialize(message: nil)
  super(
    type: TELEPHONY_PROVIDER_RATE_LIMIT_EXCEEDED_ERROR,
    ref: create_ref(TELEPHONY_PROVIDER_RATE_LIMIT_EXCEEDED_ERROR),
    message: message || 'Telephony provider message send rate limit exceeded'
  )
end