Exception: TrueTrial::NotFoundError

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

Overview

Raised when the requested resource is not found (HTTP 404).

Instance Attribute Summary

Attributes inherited from Error

#response_body, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Resource not found", response_body: nil) ⇒ NotFoundError

Returns a new instance of NotFoundError.



34
35
36
# File 'lib/truetrial/errors.rb', line 34

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