Friday, January 7, 2011

Error Handling

1) In MVC we can centralize the logic for handling and logging unhandled exceptions
by Decorating the controller classes with the [HandleError] attribute
Using the above class level attribute we can handle exceptions of specific type with separate customized views. There are other Action Filter attributes also [Authorize],[OutputCache]

Pls look into below link for details
http://www.pnpguidance.net/post/ASPNETMVCFrameworkPreview4HandleErrorAuthorizeOutputCacheActionFilterAttributes.aspx


No comments: