Exception: Skroutz::ClientError

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

Overview

Raised when a 4xx error occurs

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ ClientError

Returns a new instance of ClientError.



9
10
11
# File 'lib/skroutz/errors.rb', line 9

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