Exception: Marathon::Client::InvalidResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/marathon/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



33
34
35
# File 'lib/marathon/client.rb', line 33

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



33
34
35
# File 'lib/marathon/client.rb', line 33

def code
  @code
end