Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ExceptionContext Constructor (ControllerContext, Exception)

Initializes a new instance of the ExceptionContext class for the specified exception by using the specified controller context.

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

public ExceptionContext(
	ControllerContext controllerContext,
	Exception exception
)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

exception
Type: System.Exception

The exception.

ExceptionCondition
ArgumentNullException

The exception parameter is null.

Show:
© 2015 Microsoft