Class: Glia::Errors::AuthorizationError

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

Returns a new instance of AuthorizationError.



252
253
254
255
256
257
258
# File 'lib/glia/errors/client_errors.rb', line 252

def initialize(message: nil)
  super(
    type: AUTHORIZATION_ERROR,
    ref: create_ref(AUTHORIZATION_ERROR),
    message: message || 'You do not have permissions to perform the action'
  )
end