This topic has not yet been rated - Rate this topic

IExceptionFilter Interface

Defines the methods that are required for an exception filter.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public interface IExceptionFilter

The IExceptionFilter type exposes the following members.

  NameDescription
Public methodOnExceptionCalled when an exception occurs.
Top
NoteNote

In ASP.NET MVC versions 1 and 2, the OnException(ExceptionContext) filters ran in forward order. In ASP.NET MVC version 3 and higher, the order is reversed. Exception filters in ASP.NET MVC have a similar behavior to exception handlers in the .NET Framework, which unwind from the inside out.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.