ModelError Constructor (Exception, String)

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

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

new : 
        exception:Exception * 
        errorMessage:string -> ModelError

Parameters

exception
Type: System.Exception

The exception.

errorMessage
Type: System.String

The error message.

ExceptionCondition
ArgumentNullException

The exception parameter is a null reference (Nothing in Visual Basic).

Show: