title: why it is not recommended to use e.printstacktrace() by sonar?
body: <p>i recently started using sonar as code review tool.
  When i analysed my code running sonar,
  it reflected printing stack trace as violation of java coding standard.
  As an alternative to stack trace, I tried:</p>
  
  <pre><code>e.getcause()
  </code></pre>
  
  <p>but this did not clear the exception as done by stack trace</p>