title: handle timeout exception in loopj
body: <p>I am having error in handling the timeout exception in <code>asynchttpclient</code> </p>
  
  <pre><code>@Override
  public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {
  
      closeProgressDialog();
      Log.e("DB", String.valueOf(error));
      Log.e("DB", String.valueOf(error.getCause() instanceof ConnectTimeoutException));
  }
  </code></pre>
  
  <p>first log gives the response <code>cz.msebera.android.httpclient.conn.ConnectTimeoutException: Connect to /192.168.0.107:80 timed out</code></p>
  
  <p>while second log gives <code>null</code> or <code>false</code> 
  I want to handle the timeout exception how should I do it?</p>