G
Guest
Hi,
I have created a StringBuilder (Log) in my application that appends all the
errors and exceptions in my application. I have included Catch blocks at each
sensitive location in my functions.
I was wondering if there is a way that i can get the name of the function in
which the exception has occured like
try{}
catch(Exception e)
{
Log.Append(e.FunctionName + "--" + e.Message);
}
How can get the name of the function using e Args. I don't want to hard code
the FunctionName in each catch block.
Thanks!
With Regards
Sunny
I have created a StringBuilder (Log) in my application that appends all the
errors and exceptions in my application. I have included Catch blocks at each
sensitive location in my functions.
I was wondering if there is a way that i can get the name of the function in
which the exception has occured like
try{}
catch(Exception e)
{
Log.Append(e.FunctionName + "--" + e.Message);
}
How can get the name of the function using e Args. I don't want to hard code
the FunctionName in each catch block.
Thanks!
With Regards
Sunny