Exception: Net::HTTP::Pipeline::ResponseError

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

Overview

Raised if an error occurs while reading responses.

Instance Attribute Summary collapse

Attributes inherited from Error

#requests, #responses

Instance Method Summary collapse

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
  message = "error handling responses: #{original} (#{original.class})"
  super message, requests, responses
end

Instance Attribute Details

#originalObject

The original exception



117
118
119
# File 'lib/net/http/pipeline.rb', line 117

def original
  @original
end