Exception: Net::HTTP::Pipeline::ResponseError
- Defined in:
- lib/net/http/pipeline.rb
Overview
Raised if an error occurs while reading responses.
Instance Attribute Summary collapse
-
#original ⇒ Object
The original exception.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(exception, requests, responses) ⇒ ResponseError
constructor
Creates a new ResponseError with an original
exception, a list ofrequeststhat were in-flight and a list ofresponsesthat have been retrieved from the server.
Constructor Details
#initialize(exception, requests, responses) ⇒ ResponseError
Creates a new ResponseError with an original exception, a list of requests that were in-flight and a list of responses that have been retrieved from the server.
124 125 126 127 128 |
# File 'lib/net/http/pipeline.rb', line 124 def initialize exception, requests, responses @original = exception = "error handling responses: #{original} (#{original.class})" super , requests, responses end |
Instance Attribute Details
#original ⇒ Object
The original exception
117 118 119 |
# File 'lib/net/http/pipeline.rb', line 117 def original @original end |