Exception: HookSniff::NotFoundError

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

Instance Attribute Summary

Attributes inherited from Error

#error_code, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Resource not found") ⇒ NotFoundError

Returns a new instance of NotFoundError.



21
22
23
# File 'lib/hooksniff/errors.rb', line 21

def initialize(message = "Resource not found")
  super(message, status_code: 404, error_code: "NOT_FOUND")
end