Tracking the user function that threw the exception
Posted
by
makerofthings7
on Stack Overflow
See other posts from Stack Overflow
or by makerofthings7
Published on 2011-01-09T16:44:35Z
Indexed on
2011/01/09
16:53 UTC
Read the original article
Hit count: 367
I've been given a large application with only one try..catch
at the outer most level. This application also throws exceptions all the time, and is poorly documented.
Is there any pattern I can implement that will tell me what user method is being called, the exception being thrown, and also the count of exceptions?
I'm thinking of using a dictionary with reflection to get the needed information, but I'm not sure if this will work. What do you think?
© Stack Overflow or respective owner