Exception: Roar::Transport::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Roar::Transport::Error
- Defined in:
- lib/roar/transport/net_http.rb
Overview
Wraps the original response from NetHttp and provides it via #response.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
TODO: raise this from Faraday, too.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
46 47 48 |
# File 'lib/roar/transport/net_http.rb', line 46 def response @response end |