Method Refused
- Namespace
- MailFathom.Application.Rules.Conditions
- Assembly
- MailFathom.Application.dll
Refused(IReadOnlyList<string>)
Reports a condition that cannot be used, with every reason found while reading it.
public static MailRuleConditionCompilation Refused(IReadOnlyList<string> errors)
Parameters
errorsIReadOnlyList<string>One message per defect, each naming the rule, what was wrong, and where.
Returns
- MailRuleConditionCompilation
The refusal.
Exceptions
- ArgumentNullException
Thrown when
errorsis null.- ArgumentException
Thrown when
errorsis empty, which would report a refusal nobody could act on.