ModelError Constructor

 

Initializes a new instance of the ModelError class.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.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.

new : 
        exception:Exception -> ModelError

Parameters

exception
Type: System.Exception

The exception.

Exception Condition
ArgumentNullException

The exception parameter is null.

Return to top

ModelError Constructor (Exception, String)

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

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

Parameters

exception
Type: System.Exception

The exception.

errorMessage
Type: System.String

The error message.

Exception Condition
ArgumentNullException

The exception parameter is null.

Return to top

ModelError Constructor (String)

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

new : 
        errorMessage:string -> ModelError

Parameters

errorMessage
Type: System.String

The error message.

Return to top
Show: