Controller.OnException Method
Called when an unhandled exception occurs in the action.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Overridable Sub OnException ( _
filterContext As ExceptionContext _
)
protected virtual void OnException(
ExceptionContext filterContext
)
protected:
virtual void OnException(
ExceptionContext^ filterContext
)
Parameters
- filterContext
Type: System.Web.Mvc.ExceptionContext
Information about the current request and action.