Exception: TrueTrial::NotFoundError
- Defined in:
- lib/truetrial/errors.rb
Overview
Raised when the requested resource is not found (HTTP 404).
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Resource not found", response_body: nil) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
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( = "Resource not found", response_body: nil) super(, status_code: 404, response_body: response_body) end |