Exception: Roar::Transport::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/roar/transport/net_http.rb

Overview

Wraps the original response from NetHttp and provides it via #response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Error

TODO: raise this from Faraday, too.


41
42
43
44
# File 'lib/roar/transport/net_http.rb', line 41

def initialize(response)
  @response = response
  super("Roar error: #{response}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response


46
47
48
# File 'lib/roar/transport/net_http.rb', line 46

def response
  @response
end