title: Exception handling -- Display line number where error occurred?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://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>