compulaw
asked on
Collecting Exceptions
Hello
I was told that there is a way to collect exceptions ( Try/Catch ) as I'm running my application without creating a Namespace level string and adding Exception error messages to it.
I have a lot of various Try/Catch blocks in various Classes/Methods in different parts of my program. I need to be able to collect them all and then output in the Log file.
Any help would be much appreciated.
I was told that there is a way to collect exceptions ( Try/Catch ) as I'm running my application without creating a Namespace level string and adding Exception error messages to it.
I have a lot of various Try/Catch blocks in various Classes/Methods in different parts of my program. I need to be able to collect them all and then output in the Log file.
Any help would be much appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I believe I'm talking about throwing exceptions...something like:
try
{}
catch(Exception ex)
{
throw new Exception=.. something
}
so this way I collect exceptions and then i can optupid them in some other part of the program. I'm not 100% sure what I'm talking about here... help :)