Dela via


ModelError Class

Definition

An error that occurred during model binding and validation.

public ref class ModelError
public class ModelError
type ModelError = class
Public Class ModelError
Inheritance
ModelError

Constructors

ModelError(Exception, String)

Initializes a new instance of ModelError with the specified exception and specified errorMessage.

ModelError(Exception)

Initializes a new instance of ModelError with the specified exception.

ModelError(String)

Initializes a new instance of ModelError with the specified errorMessage.

Properties

ErrorMessage

Gets the error message associated with this ModelError instance.

Exception

Gets the Exception associated with this ModelError instance.

Applies to