ExceptionContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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()
Initializes a new instance of the ExceptionContext class.
public ExceptionContext ();
Public Sub New ()
Applies to
ExceptionContext(ControllerContext, Exception)
Initializes a new instance of the ExceptionContext class for the specified exception by using the specified controller context.
public ExceptionContext (System.Web.Mvc.ControllerContext controllerContext, Exception exception);
new System.Web.Mvc.ExceptionContext : System.Web.Mvc.ControllerContext * Exception -> System.Web.Mvc.ExceptionContext
Public Sub New (controllerContext As ControllerContext, exception As Exception)
Parameters
- controllerContext
- ControllerContext
The controller context.
- exception
- Exception
The exception.
Exceptions
The exception
parameter is null.