Exception: Flox::ServiceError
- Defined in:
- lib/flox/errors.rb
Overview
Raised when the REST service encounters an error (e.g. the server returns a HTTP code >= 400).
Instance Attribute Summary collapse
-
#response ⇒ Net::HTTPResponse
readonly
The complete server response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ServiceError
constructor
A new instance of ServiceError.
Constructor Details
#initialize(response) ⇒ ServiceError
Returns a new instance of ServiceError.
16 17 18 |
# File 'lib/flox/errors.rb', line 16 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Net::HTTPResponse (readonly)
Returns the complete server response.
13 14 15 |
# File 'lib/flox/errors.rb', line 13 def response @response end |