Exception handling -- display line number where error occurred?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/688336/show-line-number-in-exception-handling">Show line number in exception handling</a>  </p>
</blockquote>



<p>Can someone please tell me how to get the line number of the code where the error occurred and display it to the console?</p>

<p>Other information like the file name or method name would be very handy.</p>
