title: Printing Exception vs Exception.getMessage
body: <p>Is there a best practice on using the followng two pieces of code regarding exceptions.</p>
  
  <pre><code>//code1
  
  } catch (SomeException e) {
      logger.error("Noinstance available!", e.getMessage());
  }
  
  //code2
  } catch (SomeException e) {
      logger.error("Noinstance available!", e);
  }
  </code></pre>
  
  <p>When should I use the getMessage method of an exception?</p>