Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

NameDescription
System_CAPS_pubmethodOnException(ExceptionContext)

Called when an exception occurs.

System_CAPS_noteNote

In ASP.NET MVC versions 1 and 2, the OnException 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.

Return to top
Show:
© 2017 Microsoft