/// <summary> /// Initializes a new instance of the <see cref="AsyncValidationException"/> class /// by using a validation result, a validation attribute, and the value of the current exception. /// </summary> /// <param name="validationResult"> The list of validation results. </param> /// <param name="validatingAttribute"> The attribute that caused the current exception. </param> /// <param name="value"> The value of the object that caused the attribute to trigger the validation error. </param> public AsyncValidationException(ValidationResult validationResult, AsyncValidationAttribute validatingAttribute, object value) : base(validationResult, null, value) { this.ValidatingAttribute = validatingAttribute; }
/// <summary> /// Initializes a new instance of the <see cref="AsyncValidationException"/> class /// using a specified error message, a validation attribute, and the value of the current exception. /// </summary> /// <param name="errorMessage"> The message that states the error. </param> /// <param name="validatingAttribute"> The attribute that caused the current exception. </param> /// <param name="value"> The value of the object that caused the attribute to trigger validation error. </param> public AsyncValidationException(string errorMessage, AsyncValidationAttribute validatingAttribute, object value) : base(errorMessage, null, value) { this.ValidatingAttribute = validatingAttribute; }