Пример #1
0
 public ErrorInfo(string fieldName, ErrorText error)
     : this()
 {
     FiledName = fieldName;
     Errors.Add(error);
 }
Пример #2
0
 public void AddError(string fieldName, ErrorText error, params object[] args)
 {
     error.Args = args;
     errors.Add(new ErrorInfo(fieldName, error));
 }
Пример #3
0
 public void AddError(string fieldName, ErrorText error)
 {
     errors.Add(new ErrorInfo(fieldName, error));
 }
Пример #4
0
 public ValidationException(string fieldName, ErrorText error)
     : base(fieldName + " invalid")
 {
     _errors = new ErrorInfoCollection();
     _errors.Add(new ErrorInfo(fieldName, error));
 }