ModelError Class

Syntax

public class ModelError

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.ModelError

Constructors

ModelError(System.Exception)
Arguments:
  • exception (System.Exception) –
public ModelError(Exception exception)
ModelError(System.Exception, System.String)
Arguments:
  • exception (System.Exception) –
  • errorMessage (System.String) –
public ModelError(Exception exception, string errorMessage)
ModelError(System.String)
Arguments:
  • errorMessage (System.String) –
public ModelError(string errorMessage)

Properties

ErrorMessage()
Return type:System.String
public string ErrorMessage { get; }
Exception()
Return type:System.Exception
public Exception Exception { get; }