Exception: Arkaan::Utils::Errors::Forbidden

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/arkaan/utils/errors/forbidden.rb

Overview

A forbidden error occurs when a user tries to perform an action he’s not allowed to.

Author:

Instance Attribute Summary

Attributes inherited from HTTPError

#action, #error, #field, #status

Instance Method Summary collapse

Constructor Details

#initialize(field:, action:, error:) ⇒ Forbidden

Returns a new instance of Forbidden.



8
9
10
# File 'lib/arkaan/utils/errors/forbidden.rb', line 8

def initialize (field:, action:, error:)
  super(action, field, error, 403)
end