Exception: HTTPX::TimeoutError
- Defined in:
- lib/httpx/errors.rb,
sig/errors.rbs
Overview
Error raised when there was a timeout. Its subclasses allow for finer-grained control of which timeout happened.
Direct Known Subclasses
ConnectTimeoutError, OperationTimeoutError, PingTimeoutError, PoolTimeoutError, RequestTimeoutError, ResolveTimeoutError, SettingsTimeoutError
Instance Attribute Summary collapse
-
#timeout ⇒ interval
readonly
The timeout value which caused this error to be raised.
Instance Method Summary collapse
-
#to_connection_error ⇒ ConnectTimeoutError
clones this error into a HTTPX::ConnectionTimeoutError.
Instance Attribute Details
#timeout ⇒ interval (readonly)
The timeout value which caused this error to be raised.
15 16 17 |
# File 'lib/httpx/errors.rb', line 15 def timeout @timeout end |
Instance Method Details
#to_connection_error ⇒ ConnectTimeoutError
clones this error into a HTTPX::ConnectionTimeoutError.
25 26 27 28 29 |
# File 'lib/httpx/errors.rb', line 25 def to_connection_error ex = ConnectTimeoutError.new(@timeout, ) ex.set_backtrace(backtrace) ex end |