annethorne
Programmer
Hi,
We are currently building a Windows Application with Visual Studio, C# and SQL. Exceptions are caught and logged.
Is there a way for us to determine the exact spot in the code where the error occurred, that is the CLASS and the METHOD?
Here is the code we use now:
catch (Exception error)
{
ExceptionHandler.LogError(error, Applications.ID, UserProfile.UserID, Applications.Version);
throw error;
}
The error object gives us Source and StackTrace, but not location.
Thanks for any help,
Anne
We are currently building a Windows Application with Visual Studio, C# and SQL. Exceptions are caught and logged.
Is there a way for us to determine the exact spot in the code where the error occurred, that is the CLASS and the METHOD?
Here is the code we use now:
catch (Exception error)
{
ExceptionHandler.LogError(error, Applications.ID, UserProfile.UserID, Applications.Version);
throw error;
}
The error object gives us Source and StackTrace, but not location.
Thanks for any help,
Anne