Exception: SirvRestApi::NotFoundError
- Defined in:
- lib/sirv_rest_api/errors.rb
Overview
Error raised when resource is not found
Instance Attribute Summary
Attributes inherited from ApiError
#error_code, #message, #status_code
Instance Method Summary collapse
-
#initialize(message = "Resource not found", status_code = 404) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = "Resource not found", status_code = 404) ⇒ NotFoundError
Returns a new instance of NotFoundError.
52 53 54 |
# File 'lib/sirv_rest_api/errors.rb', line 52 def initialize( = "Resource not found", status_code = 404) super(, status_code, "not_found") end |