Get module name and line number with exception?

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.
 
S

sloan

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.
 
Z

z.sessions

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.
 
F

Family Tree Mike

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

Top