Exception: Deckle::NotFoundError

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

Instance Attribute Summary

Attributes inherited from Error

#code, #message, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Not found") ⇒ NotFoundError

Returns a new instance of NotFoundError.



37
38
39
# File 'lib/deckle/errors.rb', line 37

def initialize(message = "Not found")
  super(message, status_code: 404, code: "NOT_FOUND")
end