Exception: Skroutz::ServerError

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

Overview

Raised when Skroutz handles a non-successful response

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ ServerError

Returns a new instance of ServerError.



16
17
18
# File 'lib/skroutz/errors.rb', line 16

def initialize(status, body)
  super %(status: #{status}, body: "#{body}")
end