Exception: Skroutz::ResourceNotFound

Inherits:
SkroutzError
  • Object
show all
Defined in:
lib/skroutz/errors.rb

Overview

Raised when Skroutz doesn’t find the requested resource

Instance Method Summary collapse

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