Exception: Virtuatable::API::Errors::Forbidden

Inherits:
Base
  • Object
show all
Defined in:
lib/virtuatable/api/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 Base

#action, #error, #field, #status

Instance Method Summary collapse

Methods inherited from Base

#message

Constructor Details

#initialize(field:, error:) ⇒ Forbidden

Returns a new instance of Forbidden.



9
10
11
# File 'lib/virtuatable/api/errors/forbidden.rb', line 9

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