Reputation: 51104
I am trying in design a watertight exception handling strategy for an MVC application in which we use Elmah for logging unhandled exceptions. I would like some critique on some of my thoughts.
Sound OK? Anything serious missing?
Upvotes: 2
Views: 602
Reputation: 355
You're on the right track. Check out the NerdDinner sample for some examples of handling errors in controllers.
In MVC, you can create a custom controller factory that will inject the HandleErrorWithElmah attribute into all of your controllers.
Check out my code project article that deals with logging in MVC - hope that helps.
Upvotes: 2