/// <summary> /// Adds <see cref="ValidationDetail" /> to <see cref="IValidationContext" /> with fatal severity /// </summary> /// <exception cref="ValidationConditionException"> /// Throws when ValidationDetail.ValidationSeverity greater ValidationContext.ValidationSeverity. /// Example: Add fatal detail, when validation context severity is error /// </exception> public static ValidationDetail?AddValidationFatal( this IValidationCondition condition, string validationMessage) { return(condition.AddValidationDetail(validationMessage, ValidationSeverity.Fatal)); }