class HTTPX::PoolTimeoutError

  1. lib/httpx/errors.rb
Superclass: TimeoutError

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

Methods

Public Class

  1. new

Public Instance

  1. origin

Attributes

origin [R]

Public Class methods

new(origin, timeout)

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

[show source]
   # File lib/httpx/errors.rb
38 def initialize(origin, timeout)
39   @origin = origin
40   super(timeout, "Timed out after #{timeout} seconds while waiting for a connection to #{origin}")
41 end