class HTTPX::RequestTimeoutError

  1. lib/httpx/errors.rb
Superclass: TimeoutError

Error raised when there was a timeout while sending a request, or receiving a response from the server.

Methods

Public Class

  1. new

Public Instance

  1. marshal_dump
  2. request

Attributes

request [R]

The HTTPX::Request request 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
57 def initialize(request, response, timeout)
58   @request = request
59   @response = response
60   super(timeout, "Timed out after #{timeout} seconds")
61 end

Public Instance methods

marshal_dump()
[show source]
   # File lib/httpx/errors.rb
63 def marshal_dump
64   [message]
65 end