Exception: Arkaan::Utils::Errors::Forbidden
- 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.
Instance Attribute Summary
Attributes inherited from HTTPError
#action, #error, #field, #status
Instance Method Summary collapse
-
#initialize(field:, action:, error:) ⇒ Forbidden
constructor
A new instance of Forbidden.
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 |