lib/httpx/errors.rb in httpx-0.4.0 vs lib/httpx/errors.rb in httpx-0.4.1

- old
+ new

@@ -24,9 +24,18 @@ ConnectTimeoutError = Class.new(TimeoutError) ResolveError = Class.new(Error) + NativeResolveError = Class.new(ResolveError) do + attr_reader :connection, :host + def initialize(connection, host, message = "Can't resolve #{host}") + @connection = connection + @host = host + super(message) + end + end + HTTPError = Class.new(Error) do attr_reader :response def initialize(response) @response = response