G
Guest
Is there a way to get to the last exception in .Net from outside a catch
block? I've inherited someone else's ASP.Net app that's having problems. He
is calling a method to log his errors but is only passing his custom error
messages so there is no way to know what is really happening. What I would
like to do is to access the last exception that occurred from the LogError()
function rather than have to modify all of the places that it is being called
to pass extra information to it.
Is there anything in .Net that provides access to the last exception data...
Message, StackTrace, etc?
Thanks,
Todd
block? I've inherited someone else's ASP.Net app that's having problems. He
is calling a method to log his errors but is only passing his custom error
messages so there is no way to know what is really happening. What I would
like to do is to access the last exception that occurred from the LogError()
function rather than have to modify all of the places that it is being called
to pass extra information to it.
Is there anything in .Net that provides access to the last exception data...
Message, StackTrace, etc?
Thanks,
Todd