title: TestNG custom error message on timeout
body: <p>I would like to know if there's any way of customizing the timeout exception error message.</p>
  
  <p>My test is parametrized by using a DataProvider so i would like to include information about the parameters in the error message in order to know what particular scenario failed.</p>
  
  <p>Error Message</p>
  
  <pre><code>Method org.testng.internal.TestNGMethod.testEndpoint() didn't finish within the time-out 8000
  </code></pre>
  
  <p>Stacktrace</p>
  
  <pre><code>org.testng.internal.thread.ThreadTimeoutException: Method     
  org.testng.internal.TestNGMethod.testEndpoint() didn't finish within the time-out 8000
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:150)
      at java.net.SocketInputStream.read(SocketInputStream.java:121)
      at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
      at sun.security.ssl.InputRecord.read(InputRecord.java:480)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
      at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
      at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
      at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:633)
      at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
  </code></pre>