public ErrorInfo(string fieldName, ErrorText error) : this() { FiledName = fieldName; Errors.Add(error); }
public void AddError(string fieldName, ErrorText error, params object[] args) { error.Args = args; errors.Add(new ErrorInfo(fieldName, error)); }
public void AddError(string fieldName, ErrorText error) { errors.Add(new ErrorInfo(fieldName, error)); }
public ValidationException(string fieldName, ErrorText error) : base(fieldName + " invalid") { _errors = new ErrorInfoCollection(); _errors.Add(new ErrorInfo(fieldName, error)); }