Exception: HTTPX::NativeResolveError

Inherits:
ResolveError show all
Defined in:
lib/httpx/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, host, message = "Can't resolve #{host}") ⇒ NativeResolveError

Returns a new instance of NativeResolveError.



36
37
38
39
40
# File 'lib/httpx/errors.rb', line 36

def initialize(connection, host, message = "Can't resolve #{host}")
  @connection = connection
  @host = host
  super(message)
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



34
35
36
# File 'lib/httpx/errors.rb', line 34

def connection
  @connection
end

#hostObject (readonly)

Returns the value of attribute host.



34
35
36
# File 'lib/httpx/errors.rb', line 34

def host
  @host
end