Example #1
0
 public ValidationException(string errorMessage, ValidationAttribute validatingAttribute, object value) : base(errorMessage)
 {
     Value = value;
     ValidationAttribute = validatingAttribute;
 }
Example #2
0
 public ValidationException(ValidationResult validationResult, ValidationAttribute validatingAttribute, object value) : this(validationResult.ErrorMessage, validatingAttribute, value)
 {
     _validationResult = validationResult;
 }