Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)
Syntax
'Declaration
Public Sub New ( _
    controllerContext As ControllerContext, _
    exception As Exception _
)
public ExceptionContext(
    ControllerContext controllerContext,
    Exception exception
)
public:
ExceptionContext(
    ControllerContext^ controllerContext, 
    Exception^ exception
)
Parameters
- controllerContext
Type: System.Web.Mvc.ControllerContext
The controller context. 
- exception
Type: System.Exception
The exception. 
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | The exception parameter is null reference (Nothing in Visual Basic).  |