Language

HandleErrorAttribute.OnException Method (ExceptionContext)

 

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

Implements

IExceptionFilter.OnException(ExceptionContext)

Exceptions

Exception Condition
ArgumentNullException

The filterContext parameter is null.

See Also

HandleErrorAttribute Class
System.Web.Mvc Namespace

Return to top