Exception: Skroutz::ServerError
- Inherits:
-
SkroutzError
- Object
- StandardError
- SkroutzError
- Skroutz::ServerError
- Defined in:
- lib/skroutz/errors.rb
Overview
Raised when Skroutz handles a non-successful response
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ServerError
constructor
A new instance of ServerError.
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 |