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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The exception parameter is nullptr. |
Show: