A
Adam
I apologize if this is an easy question, but I can't find
a way to do this.
I want the line number of where an error occurred to be
shown in a new exception's message when I use a try/catch
statement. Is there a way to get the line number where
error occurred when catching an Exception?
Example:
try
{
##code##
}
catch(Exception ex)
{throw new Exception(ex.Message + ##error line number##);}
a way to do this.
I want the line number of where an error occurred to be
shown in a new exception's message when I use a try/catch
statement. Is there a way to get the line number where
error occurred when catching an Exception?
Example:
try
{
##code##
}
catch(Exception ex)
{throw new Exception(ex.Message + ##error line number##);}