示例#1
0
 public void CreateError(ValidationErrorCategory validationErrorCategory, string ruleName, string message)
 {
     AddError(new ValidationError(ruleName, PathString, message, validationErrorCategory));
 }
 public ValidationError(string ruleName, string pointer, string message, ValidationErrorCategory validationErrorCategory) : base(ruleName, pointer, message)
 {
     ValidationErrorCategory = validationErrorCategory;
 }