Exception: Net::HTTP::Pipeline::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Net::HTTP::Pipeline::Error
- Defined in:
- lib/net/http/pipeline.rb
Overview
Pipeline error class
Direct Known Subclasses
PersistenceError, PipelineError, ResponseError, VersionError
Instance Attribute Summary collapse
-
#requests ⇒ Object
readonly
Remaining requests that have not been sent to the HTTP server.
-
#responses ⇒ Object
readonly
Retrieved responses up to the error point.
Instance Method Summary collapse
-
#initialize(message, requests, responses) ⇒ Error
constructor
Creates a new Error with
message, a list ofrequeststhat have not been sent to the server and a list ofresponsesthat have been retrieved from the server.
Constructor Details
#initialize(message, requests, responses) ⇒ Error
Creates a new Error with message, a list of requests that have not been sent to the server and a list of responses that have been retrieved from the server.
59 60 61 62 63 64 |
# File 'lib/net/http/pipeline.rb', line 59 def initialize , requests, responses super @requests = requests @responses = responses end |
Instance Attribute Details
#requests ⇒ Object (readonly)
Remaining requests that have not been sent to the HTTP server
47 48 49 |
# File 'lib/net/http/pipeline.rb', line 47 def requests @requests end |
#responses ⇒ Object (readonly)
Retrieved responses up to the error point
52 53 54 |
# File 'lib/net/http/pipeline.rb', line 52 def responses @responses end |