ModelError ModelError ModelError Class

Definition

Represents an error that occurs during model binding.

[Serializable]
public class ModelError
type ModelError = class
Public Class ModelError
Inheritance
ModelErrorModelErrorModelError
Attributes
SerializableAttribute

Constructors

ModelError(Exception) 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) ModelError(Exception, String)

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

Properties

ErrorMessage ErrorMessage ErrorMessage

Gets or sets the error message.

Exception Exception Exception

Gets or sets the exception object.

Applies to