Exception: HTTPX::PoolTimeoutError

Inherits:
TimeoutError show all
Defined in:
lib/httpx/errors.rb

Overview

Raise when it can’t acquire a connection for a given origin.

Instance Attribute Summary collapse

Attributes inherited from TimeoutError

#timeout

Instance Method Summary collapse

Methods inherited from TimeoutError

#to_connection_error

Constructor Details

#initialize(origin, timeout) ⇒ PoolTimeoutError

initializes the origin it refers to, and the timeout causing the error.



38
39
40
41
# File 'lib/httpx/errors.rb', line 38

def initialize(origin, timeout)
  @origin = origin
  super(timeout, "Timed out after #{timeout} seconds while waiting for a connection to #{origin}")
end

Instance Attribute Details

#originObject (readonly)

Returns the value of attribute origin.



34
35
36
# File 'lib/httpx/errors.rb', line 34

def origin
  @origin
end