ExceptionContext Constructor
Initializes a new instance of the ExceptionContext class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | ExceptionContext() | Initializes a new instance of the ExceptionContext class. |
![]() | ExceptionContext(ControllerContext, Exception) | Initializes a new instance of the ExceptionContext class for the specified exception by using the specified controller context. |
ExceptionContext Constructor ()
Initializes a new instance of the ExceptionContext class.
ExceptionContext Constructor (ControllerContext, Exception)
Initializes a new instance of the ExceptionContext class for the specified exception by using the specified controller context.
Parameters
- controllerContext
-
Type:
System.Web.Mvc.ControllerContext
The controller context.
- exception
-
Type:
System.Exception
The exception.
| Exception | Condition |
|---|---|
| ArgumentNullException | The exception parameter is null. |
Show:
