Minimal Background: Larger Project, plenty of Classes be bandied about behind the scenes. Based on the Environment variables, plenty of things can be wrong on the user end to allow the tool to do its job, and well, I'm not perfect so there are things in the code that I could probably code better. This is in C#.NET.
Issue: So in order to do a little better, I want to report the errors and the error types from the Class. I have a nice little XML error report generator that I can toss errors into for myself. I don't want a pop up window with arcane code for the users that will use the tool. AND since we are in a system testing phase, I don't want them to send me reports every time a window pops up. Question: Is there a best practice for error reporting inside the code? Or some way that you prefer? I would hate to surround the entire contents of a method with a try-catch but if that's the way to go then so be it. Does anyone create a list of Error Flags as private variables at the front of their class and turn those flags on for specific errors? You get the gist (i hope). I'm looking for feedback. Thanks. JOE--
