class HTTPX::NativeResolveError

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

Error raised when there was an error while resolving a domain to an IP using a HTTPX::Resolver::Native resolver.

Methods

Public Class

  1. new

Public Instance

  1. connection
  2. host

Attributes

connection [R]
host [R]

Public Class methods

new(connection, host, message = "Can't resolve #{host}")

initializes the exception with the connection it refers to, the host domain which failed to resolve, and the error message.

[show source]
   # File lib/httpx/errors.rb
78 def initialize(connection, host, message = "Can't resolve #{host}")
79   @connection = connection
80   @host = host
81   super(message)
82 end