Exception: HTTPX::PoolTimeoutError
- Inherits:
-
TimeoutError
- Object
- StandardError
- Error
- TimeoutError
- HTTPX::PoolTimeoutError
- Defined in:
- lib/httpx/errors.rb
Overview
Raise when it can’t acquire a connection for a given origin.
Instance Attribute Summary collapse
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Attributes inherited from TimeoutError
Instance Method Summary collapse
-
#initialize(origin, timeout) ⇒ PoolTimeoutError
constructor
initializes the
origin
it refers to, and thetimeout
causing the error.
Methods inherited from TimeoutError
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
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
34 35 36 |
# File 'lib/httpx/errors.rb', line 34 def origin @origin end |