Table of Contents

Class RuleFailure

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

One rule's authored explanation for not matching: produced when a rule that declares a failureMessage is evaluated and its condition does not pass. Skipped rules (disabled, or unreached after a stop-on-first-match) produce none — a message means the rule was actually asked and said no.

public sealed class RuleFailure
Inheritance
RuleFailure
Inherited Members

Constructors

RuleFailure(string, string)

Creates a rule failure.

Properties

Message

The rule's authored failureMessage.

RuleId

The id of the rule whose condition did not pass.