Exception: Skroutz::UnauthorizedError

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

Overview

Raised when an authorization error occurs

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



46
47
48
# File 'lib/skroutz/errors.rb', line 46

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