title: How to print stacktrace for an exception Android
body: <p>I want to print the stack trace because at the moment I have this running.</p>
  
  <pre><code>} catch (IOException e) {
      throw new Error("Copying Failed");
  }
  </code></pre>
  
  <p>And I have been told to print <code>e.stacktrace();</code></p>
  
  <p>How do I do this?</p>