ModelError Constructor

 

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

NameDescription
System_CAPS_pubmethodModelError(Exception)

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

System_CAPS_pubmethodModelError(Exception, String)

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

System_CAPS_pubmethodModelError(String)

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

Return to top

ModelError Constructor (Exception)

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

public ModelError(
	Exception exception
)

Parameters

exception
Type: System.Exception

The exception.

Return to top

ModelError Constructor (Exception, String)

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

public ModelError(
	Exception exception,
	string errorMessage
)

Parameters

exception
Type: System.Exception

The exception.

errorMessage
Type: System.String

The error message

Return to top

ModelError Constructor (String)

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

public ModelError(
	string errorMessage
)

Parameters

errorMessage
Type: System.String

The error message

Return to top
Show: