Exception: HookBridge::NotFoundError

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

Overview

Raised when a resource is not found (404)

Instance Attribute Summary

Attributes inherited from Error

#code, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NotFoundError.



25
26
27
# File 'lib/hookbridge/errors.rb', line 25

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