Exception: Apertur::NotFoundError
- Defined in:
- lib/apertur/errors.rb
Overview
Raised when the API returns a 404 Not Found response.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Not found") ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = "Not found") ⇒ NotFoundError
Returns a new instance of NotFoundError.
30 31 32 |
# File 'lib/apertur/errors.rb', line 30 def initialize( = "Not found") super(, status_code: 404, code: "NOT_FOUND") end |