Udostępnij za pośrednictwem


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

See Also

Reference

Controller Class

System.Web.Mvc Namespace