Exception: Net::HTTP::Pipeline::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/net/http/pipeline.rb

Overview

Pipeline error class

Instance Attribute Summary collapse

Instance Method Summary collapse

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 message, requests, responses
  super message

  @requests = requests
  @responses = responses
end

Instance Attribute Details

#requestsObject (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

#responsesObject (readonly)

Retrieved responses up to the error point



52
53
54
# File 'lib/net/http/pipeline.rb', line 52

def responses
  @responses
end