Currently I am using Vert-x 3.3.2.
I have encountered a compilation error with HttpClient.exceptionHandler and HttpClientRequest.exceptionHandler.
Is the exception handler no longer supported for these classes?
Are there any alternative ways to handle this issue?
var client = vertx.createHttpClient(options);
var request = client.getNow(8080, "localhost", data, function (resp) {
resp.bodyHandler(function (body) {
console.log(body.toString());
});
resp.exceptionHandler(function(err){
console.log("Response Exception:::"+err.getCode());
});
});
request.exceptionHandler(function(Err){
console.log("Client Exception ::: "+Err);
});
I have also attempted:
client.exceptionHandler(function(Err){
console.log("Client Exception ::: "+Err);
});
Any assistance on resolving this issue would be greatly appreciated.