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

Returns a new instance of AuthorizationError.



191
192
193
194
195
196
197
# File 'lib/glia/errors/client_errors.rb', line 191

def initialize(message: nil)
  super(
    type: AUTHORIZATION_ERROR,
    ref: "https://example.com/errors/#{AUTHORIZATION_ERROR}.html",
    message: message || 'You do not have permissions to perform the action'
  )
end