Exception: Evil::Client::ResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Evil::Client::ResponseError
- Defined in:
- lib/evil/client/exceptions/response_error.rb
Overview
Exception to be risen when remote API responded with undefined status
Instance Attribute Summary collapse
-
#body ⇒ Enumerable
readonly
The enumerable object describing the [#response] body.
-
#headers ⇒ Hash
readonly
The hash of the [#response] headers.
-
#response ⇒ Array
readonly
The rack response to the request.
-
#schema ⇒ Evil::Client::Container::Operation::Schema
readonly
The operation schema.
-
#settings ⇒ Enumerable
readonly
The enumerable object describing the [#response] body.
-
#status ⇒ Integer
readonly
The status of the [#response].
Instance Attribute Details
#body ⇒ Enumerable (readonly)
Returns The enumerable object describing the [#response] body.
28 29 30 |
# File 'lib/evil/client/exceptions/response_error.rb', line 28 def body @body end |
#headers ⇒ Hash (readonly)
Returns The hash of the [#response] headers.
24 25 26 |
# File 'lib/evil/client/exceptions/response_error.rb', line 24 def headers @headers end |
#response ⇒ Array (readonly)
Returns The rack response to the request.
16 17 18 |
# File 'lib/evil/client/exceptions/response_error.rb', line 16 def response @response end |
#schema ⇒ Evil::Client::Container::Operation::Schema (readonly)
Returns The operation schema.
8 9 10 |
# File 'lib/evil/client/exceptions/response_error.rb', line 8 def schema @schema end |
#settings ⇒ Enumerable (readonly)
Returns The enumerable object describing the [#response] body.
12 13 14 |
# File 'lib/evil/client/exceptions/response_error.rb', line 12 def settings @settings end |
#status ⇒ Integer (readonly)
Returns The status of the [#response].
20 21 22 |
# File 'lib/evil/client/exceptions/response_error.rb', line 20 def status @status end |