Exception: Apertur::NotFoundError

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

Overview

Raised when the API returns a 404 Not Found response.

Instance Attribute Summary

Attributes inherited from Error

#code, #status_code

Instance Method Summary collapse

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(message = "Not found")
  super(message, status_code: 404, code: "NOT_FOUND")
end