ModelError ModelError ModelError Constructors

Definition

Overloads

ModelError(Exception) ModelError(Exception)

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

ModelError(String) ModelError(String) ModelError(String)

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

ModelError(Exception, String) ModelError(Exception, String)

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

ModelError(Exception) ModelError(Exception)

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

public ModelError (Exception exception);
new System.Web.Mvc.ModelError : Exception -> System.Web.Mvc.ModelError

Parameters

exception
Exception Exception Exception

The exception.

Exceptions

ModelError(String) ModelError(String) ModelError(String)

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

public ModelError (string errorMessage);
new System.Web.Mvc.ModelError : string -> System.Web.Mvc.ModelError
Public Sub New (errorMessage As String)

Parameters

errorMessage
String String String

The error message.

ModelError(Exception, String) ModelError(Exception, String)

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

public ModelError (Exception exception, string errorMessage);
new System.Web.Mvc.ModelError : Exception * string -> System.Web.Mvc.ModelError

Parameters

exception
Exception Exception Exception

The exception.

errorMessage
String String String

The error message.

Exceptions

Applies to