In an MVC3 web application, I was using Public Static Zero Global Filter Filter (GlobalFilterCollection filter) In order to implement global error handling, where the user was shown 'Error' view, if there was no exception, an exception occurred. For a particular view, I also wanted to display a different error view, if by decorating the method with [HandleError (View = "SpecialError")] Unwanted exceptions occurred. It works fine. Then I want to add global logging to unsociable exceptions. I created a custom handle error feature with the logging code: Public class MyHandleErrorAttribute: HandleErrorAttribute {The public override zero over exponence (exception context context) {// code to log code code. Xxation (reference); }} And instead of using this attribute name, register global filter and method decoration has been updated. It usually works, but when there is an exception method that is decorated with MyHandleError (see = "special error...
Comments
Post a Comment