Exception: Virtuatable::API::Errors::NotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/virtuatable/api/errors/not_found.rb

Overview

A not found error occurs when a user tries to reach a resource that does not exist.

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:) ⇒ NotFound

Returns a new instance of NotFound.



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

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