Link to home
Start Free TrialLog in
Avatar of compulaw
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.
ASKER CERTIFIED SOLUTION
Avatar of _Eyeball_
_Eyeball_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of compulaw
compulaw

ASKER

That could definately work but I don't want to create extra classes/Methods for this.
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 :)