I've seen two methods of implementing global error handling in an ASP.NET MVC 3 application. One method is via the Application_Error method in Global.asax.cs.
For example (Error Handling in global.asax):
public class SomeWebApplication : System.Web.HttpApplication {
// ... other methods ...
protected void Application_Error() {
// ... application error handling code ...
}
}
The other method is via a [HandleError] action filter attribute registered in the RegisterGlobalFilters method, again in Global.asax.cs.
Which is the better way to approach this? Are there any significant disadvantages to either approach?