Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called when an exception occurs.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public virtual void OnException(
ExceptionContext filterContext
)
public:
virtual void OnException(
ExceptionContext^ filterContext
)
abstract OnException :
filterContext:ExceptionContext -> unit
override OnException :
filterContext:ExceptionContext -> unit
Public Overridable Sub OnException (
filterContext As ExceptionContext
)
Parameters
filterContext
Type: System.Web.Mvc.ExceptionContextThe action-filter context.
Implements
IExceptionFilter.OnException(ExceptionContext)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The filterContext parameter is null. |
See Also
HandleErrorAttribute Class
System.Web.Mvc Namespace
Return to top