title: Exception message is null?
body: <p>I have a <code>try-catch</code> statement in my code. In my catch block, I am calling <code>e.getMessage()</code> to print the message of the exception. However, <code>e.getMessage</code> keeps returning a null value. Interestingly, when I call <code>e.printStackTrace,</code> I have no problem printing the stack trace.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>try
  {
      console = new BufferedReader(new InputStreamReader(httpsURLConnection.getInputStream()));
  }catch(Exception e)
  {
      Log.d("Error", "Error Message: " + e.getMessage()); //e.getMessage is returning a null value
      e.printStackTrace(); //this works. is displaying a SocketTimeOutException
  }
  </code></pre>
  
  <p>What could be the cause of my problem? How do I solve it?</p>