show line in exception.message
Posted
by Crash893
on Stack Overflow
See other posts from Stack Overflow
or by Crash893
Published on 2009-03-27T02:44:12Z
Indexed on
2010/04/04
17:33 UTC
Read the original article
Hit count: 250
How would one display what line number caused the error
and is this even possible with the way that .net compiles its exes?
If not is there an automated way for exception.message to display the sub that crapped out?
try
{
int x = textbox1.text;
}
catch(exception ex)
{
messagebox.show(ex.message);
}
© Stack Overflow or respective owner