Exception: Skroutz::UnauthorizedError
- Inherits:
-
SkroutzError
- Object
- StandardError
- SkroutzError
- Skroutz::UnauthorizedError
- Defined in:
- lib/skroutz/errors.rb
Overview
Raised when an authorization error occurs
Instance Method Summary collapse
-
#initialize(status, body) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
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 |