Exception: HTTPX::RequestTimeoutError
- Inherits:
-
TimeoutError
- Object
- StandardError
- Error
- TimeoutError
- HTTPX::RequestTimeoutError
- Defined in:
- lib/httpx/errors.rb
Overview
Error raised when there was a timeout while sending a request, or receiving a response from the server.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
The HTTPX::Request request object this exception refers to.
Attributes inherited from TimeoutError
Instance Method Summary collapse
-
#initialize(request, response, timeout) ⇒ RequestTimeoutError
constructor
initializes the exception with the
request
andresponse
it refers to, and thetimeout
causing the error, and the. - #marshal_dump ⇒ Object
Methods inherited from TimeoutError
Constructor Details
#initialize(request, response, timeout) ⇒ RequestTimeoutError
initializes the exception with the request
and response
it refers to, and the timeout
causing the error, and the
48 49 50 51 52 |
# File 'lib/httpx/errors.rb', line 48 def initialize(request, response, timeout) @request = request @response = response super(timeout, "Timed out after #{timeout} seconds") end |
Instance Attribute Details
#request ⇒ Object (readonly)
The HTTPX::Request request object this exception refers to.
44 45 46 |
# File 'lib/httpx/errors.rb', line 44 def request @request end |
Instance Method Details
#marshal_dump ⇒ Object
54 55 56 |
# File 'lib/httpx/errors.rb', line 54 def marshal_dump [] end |