stack Trace....

  • Thread starter Thread starter Harry Smith
  • Start date Start date
H

Harry Smith

Can anyone show me the documentation on how to read the Stack Trace? When I
get the error it is not possible to identify which line exactly thrown the
error.
Thanks,
Harry
 
Hello Harry,

try
{
SomeMethodThatThrowsAnException();
}
catch (Exception e)
{
string foo = e.StackTrace; // contains the info your after...
}
 
Back
Top