How do I handle uncaught exceptions in an ASP.NET MVC 3 application?

Viewed 11978

I want to handle uncaught exceptions in my ASP.NET MVC 3 application, so that I may communicate the error to the user via the application's error view. How do I intercept uncaught exceptions? I'd like to be able to do this globally, not for each controller (although I wouldn't mind knowing how to do this as well).

5 Answers
Related