Exception: Marathon::Client::InvalidResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Marathon::Client::InvalidResponseError
- Defined in:
- lib/marathon/client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(response) ⇒ InvalidResponseError
constructor
A new instance of InvalidResponseError.
Constructor Details
#initialize(response) ⇒ InvalidResponseError
Returns a new instance of InvalidResponseError.
35 36 37 38 39 |
# File 'lib/marathon/client.rb', line 35 def initialize(response) @code = response.code @body = response.body super("Unexpected response: #{@code}, #{@body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
33 34 35 |
# File 'lib/marathon/client.rb', line 33 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
33 34 35 |
# File 'lib/marathon/client.rb', line 33 def code @code end |