Error raised when there was a timeout while sending a request, or receiving a response from the server.
Attributes
| request | [R] |
The |
| response | [R] |
The response object this exception refers to. |
Public Class methods
new(request, response, timeout)
initializes the exception with the request and response it refers to, and the timeout causing the error, and the
[show source]
# File lib/httpx/errors.rb 51 def initialize(request, response, timeout) 52 @request = request 53 @response = response 54 super(timeout, "Timed out after #{timeout} seconds") 55 end