Get module name and line number with exception?

  • Thread starter Thread starter Chris Botha
  • Start date Start date
C

Chris Botha

Using VB, how can I get the module name/class name, and source file line
number when an exception is thrown?

Thanks.
 
What was the answer? So that when people find this thread post years from
now by googling themselves....they'll see the answer with it.
 
What was the answer?  So that when people find this thread post years from
now by googling themselves....they'll see the answer with it.

I would create a custom exception with properties that contain those
values, or display the values in the exception message or inner
exception.
 
What was the answer? So that when people find this thread post years from
now by googling themselves....they'll see the answer with it.

I would create a custom exception with properties that contain those
values, or display the values in the exception message or inner
exception.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top