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:

  1. Surrounded each method with try catch(Exception exception)
  2. For any layer except front layer, threw exception to the layer above
  3. 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?

Edit
Report