if I do this:
try
{
//code
}
catch (Exception)
{
throw;
}
Does the Exception go up with all its information? The idea is to handle errors at the top of the app. There I'd execute some SQL sp to fill the admin's table so he's aware of exceptions.
I want to store Exception.Message
and the source (method, function, whatever..) of the exception. But I don't know how to refer to "where" the exception happened. Is it Exception.Source
? Exception.TargetSite
?
Thanks.