title: How to get Exception reason/cause in external package
body: <p>The following line of code throws an Exception:</p>
  
  <pre><code>HttpResponse response = client.execute(request);    // actual HTTP request
  </code></pre>
  
  <p>I am able to catch it and print:</p>
  
  <pre><code>Log.e(TAG0, "Exception " + e.getMessage());
  </code></pre>
  
  <p>Which puts into LogCat:</p>
  
  <blockquote>
    <p>03-03 14:52:11.965:
    ERROR/TestHttpGet(786): Exception
    www.google.com</p>
  </blockquote>
  
  <p>Nice, but I don't understand <strong>why</strong> the exception is thrown. All I did, prior to the line that throws the exception was:</p>
  
  <pre><code>HttpClient client = new DefaultHttpClient();
  HttpGet request = new HttpGet();
  request.setURI(new URI("http://www.google.com/"));
  HttpResponse response = client.execute(request);    // actual HTTP request
  </code></pre>
  
  <p>How do I progress from here?</p>