using System; namespace Abp.Web.Models { /// /// Used to store information about a validation error. /// [Serializable] public class ValidationErrorInfo { /// /// Validation error message. /// public string Message { get; set; } /// /// Relate invalid members (fields/properties). /// public string[] Members { get; set; } /// /// Creates a new instance of . /// public ValidationErrorInfo() { } /// /// Creates a new instance of . /// /// Validation error message public ValidationErrorInfo(string message) { Message = message; } /// /// Creates a new instance of . /// /// Validation error message /// Related invalid members public ValidationErrorInfo(string message, string[] members) : this(message) { Members = members; } /// /// Creates a new instance of . /// /// Validation error message /// Related invalid member public ValidationErrorInfo(string message, string member) : this(message, new[] { member }) { } } }