I am writing a class that I plan to reuse, so I want to make it generic (for reading, writing, creating xml files to store application settings). My question is, is it better to put the exception handling in the class (such as file read errors, etc), or is it better to leave them out of the class and have them handled at the.. um.. "application" level (that is, the level where I call the methods in the class)?

If I put the exception handing in the class, then I won't have to worry about it when I write my program because I know the exceptions will be handled, but it doesn't give me the flexibility to do what I want should I decided that I want to do something different for a specific situation.

Is there an easy way to get the best of both worlds?

I am leading towards putting the error handling in the class to make my programming easier.

Skip