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
57 58 59 60 61 |
# File 'lib/httpx/errors.rb', line 57 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.
53 54 55 |
# File 'lib/httpx/errors.rb', line 53 def request @request end |
Instance Method Details
#marshal_dump ⇒ Object
63 64 65 |
# File 'lib/httpx/errors.rb', line 63 def marshal_dump [] end |