Export (0) Print
Expand All

ModelError Constructor (Exception)

Initializes a new instance of the ModelError class by using the specified exception.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public ModelError(
	Exception exception
)

Parameters

exception
Type: System.Exception
The exception.

ExceptionCondition
ArgumentNullException

The exception parameter is null.

Show:
© 2014 Microsoft