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
45 def initialize(request, response, timeout)
46   @request = request
47   @response = response
48   super(timeout, "Timed out after #{timeout} seconds")
49 end

Public Instance methods

marshal_dump()
[show source]
   # File lib/httpx/errors.rb
51 def marshal_dump
52   [message]
53 end