Exception: SirvRestApi::NotFoundError

Inherits:
ApiError show all
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

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(message = "Resource not found", status_code = 404)
  super(message, status_code, "not_found")
end