Exception: JPie::Errors::NotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/jpie/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #detail, #source, #status, #title

Instance Method Summary collapse

Methods inherited from Error

#to_hash

Constructor Details

#initialize(detail: 'Resource not found') ⇒ NotFoundError

Returns a new instance of NotFoundError.



35
36
37
# File 'lib/jpie/errors.rb', line 35

def initialize(detail: 'Resource not found')
  super(status: 404, title: 'Not Found', detail:)
end