Exception: Skroutz::ResourceNotFound
- Inherits:
-
SkroutzError
- Object
- StandardError
- SkroutzError
- Skroutz::ResourceNotFound
- Defined in:
- lib/skroutz/errors.rb
Overview
Raised when Skroutz doesn’t find the requested resource
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ResourceNotFound
constructor
A new instance of ResourceNotFound.
Constructor Details
#initialize(status, body) ⇒ ResourceNotFound
Returns a new instance of ResourceNotFound.
30 31 32 |
# File 'lib/skroutz/errors.rb', line 30 def initialize(status, body) super %(status: #{status}, body: "#{body}") end |