EvaluationException Class
Assembly: CodeEffects.Rule.Engine.dll
Namespace: CodeEffects.Rule.Engine
Summary
This exception is thrown when the Rule Engine encounters an error during the evaluation of a rule.
Syntax
public class EvaluationException : CodeEffects.Rule.Common.RuleException
Inheritance
Constructors
EvaluationException(..)
Initializes a new instance of the EvaluationException class with the specified control number and message. The engine creates and throws this exception itself, for example when a ruleset does not contain any rule that matches the source type of the evaluator, so you rarely need to call this constructor.
Parameters
- number (
System.String) - The support control number of the exception. It is exposed through the inherited ControlNumber property.
- message (
System.String) - The message that describes the error.
Inherited Properties
ControlNumber
Type: System.String
Inherited from RuleException. Gets the support control number of this exception. Use this value when contacting Code Effects Software for technical support.
Example
try
{
var evaluator = new Evaluator<Patient>(rulesetXml);
}
catch(EvaluationException ex)
{
Console.WriteLine($"{ex.ControlNumber}: {ex.Message}");
}