Class: Glia::Errors::AuthorizationError

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

Constant Summary

Constants inherited from Error

Error::SNAKE_CASE_REGEX

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



212
213
214
215
216
217
218
# File 'lib/glia/errors/client_errors.rb', line 212

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