Exception: TempoIQ::HttpException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tempoiq/remoter/http_result.rb

Overview

Thrown from client calls where unexpected response codes are returned from the backend.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ HttpException

Returns a new instance of HttpException.



8
9
10
# File 'lib/tempoiq/remoter/http_result.rb', line 8

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Underlying response object, useful for debugging unexpected failures.



6
7
8
# File 'lib/tempoiq/remoter/http_result.rb', line 6

def response
  @response
end