title: Vertx HttpClientRequest - Unable to catch timeout exception
body: <p>I have been unable to catch time out exception that happens in my vertx HttpClientRequest. I have enclosed my connection and request creation code in try-catch block. Also I have added exceptionHandler and endHandler. But none of them gets fired when the time out happens. All I receive is the below error message which gets printed on the console. Please give me idea how to catch this exception, so that I can call the caller back with relevant info.</p>
  
  <blockquote>
    <p>io.vertx.core.http.impl.HttpClientRequestImpl
    SEVERE: io.netty.channel.ConnectTimeoutException: connection timed out: </p>
  </blockquote>
  
  <p>The code below is what I use to make request to server. As you can see I have used try-catch and added exceptionHandler as well.</p>
  
  <pre><code>try{
      HttpClient httpClient = Vert.x.createHttpClient(new HttpClientOptions().setSsl(true).setTrustAll(true).setVerifyHost(false));
      HttpClientRequest request = httpClient.get(port, host, uri.getRawPath(), event-&gt; {
          event.exceptionHandler(e -&gt; {
              log.error(" Error:: " + e);
          });
          event.handler(handler -&gt; {
              //code
          });
      });                             
      request.putHeader(HttpHeaders.Names.AUTHORIZATION, "Basic "+authEnc);
      request.end();
  } catch(Exception e){
      log.error(" Exception :: " + e);
  }
  </code></pre>