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)

new : 
        controllerContext:ControllerContext * 
        exception:Exception -> ExceptionContext

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

exception
Type: System.Exception

The exception.

ExceptionCondition
ArgumentNullException

The exception parameter is a null reference (Nothing in Visual Basic).

Show:
© 2015 Microsoft