HandleErrorAttribute.OnException Method (System.Web.Mvc)

Switch View :
ScriptFree
.NET Framework Class Library
HandleErrorAttribute.OnException Method

Called when an exception occurs.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
Syntax

Visual Basic (Declaration)
Public Overridable Sub OnException ( _
	filterContext As ExceptionContext _
)
Visual Basic (Usage)
Dim instance As HandleErrorAttribute
Dim filterContext As ExceptionContext

instance.OnException(filterContext)
C#
public virtual void OnException(
	ExceptionContext filterContext
)
Visual C++
public:
virtual void OnException(
	ExceptionContext^ filterContext
)
JScript
public function OnException(
	filterContext : ExceptionContext
)

Parameters

filterContext
Type: System.Web.Mvc.ExceptionContext
The action-filter context.

Implements

IExceptionFilter.OnException(ExceptionContext)
Exceptions

Exception Condition
ArgumentNullException

The filterContext parameter is null.

See Also

Reference