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.



56
57
58
59
60
# File 'lib/httpx/errors.rb', line 56

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.



54
55
56
# File 'lib/httpx/errors.rb', line 54

def connection
  @connection
end

#hostObject (readonly)

Returns the value of attribute host.



54
55
56
# File 'lib/httpx/errors.rb', line 54

def host
  @host
end