9
It's a question about best .net practise. I always caught and stored information about exceptions in all of my web and window forms applications as follows:
- Surrounded each method with try catch(Exception exception)
- For any layer except front layer, threw exception to the layer above
- In the front layer, logged the exception to a log file (usually using log4config.dll) and presented a user friendly message to the user.
Is this the best way to handle exceptions? Or should I do something different in my next projects?