Exception: Evil::Client::ResponseError

Inherits:
RuntimeError
  • Object
show all
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

Instance Attribute Details

#body ⇒ Enumerable (readonly)

Returns The enumerable object describing the [#response] body.

Returns:

  • (Enumerable) —

    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.

Returns:

  • (Hash) —

    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.

Returns:

  • (Array) —

    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.

Returns:

  • (Evil::Client::Container::Operation::Schema) —

    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.

Returns:

  • (Enumerable) —

    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].

Returns:

  • (Integer) —

    The status of the [#response]



20
21
22
# File 'lib/evil/client/exceptions/response_error.rb', line 20

def status
  @status
end