ModelError Constructor (Exception, String)

.NET Framework (current version)
 

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

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

public ModelError(
	Exception exception,
	string errorMessage
)

Parameters

exception
Type: System.Exception

The exception.

errorMessage
Type: System.String

The error message.

Exception Condition
ArgumentNullException

The exception parameter is null.

.NET Framework
Available since 4.5
Return to top
Show: