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.
 
Back
Top