Exception: Sendly::NotFoundError

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

Overview

Raised when the requested resource is not found

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #status_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NotFoundError.



61
62
63
# File 'lib/sendly/errors.rb', line 61

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