RuleException Class
Assembly: CodeEffects.Rule.Common.dll
Namespace: CodeEffects.Rule.Common
Summary
Provides the base class for all rule-related exception types used by both the Rules Engine and the Rule Editor.
Syntax
public class RuleException : System.Exception
Constructors
RuleException(string, string)
Initializes a new instance of the RuleException class with the specified support control number and error message.
Parameters
number (System.String): The support control number of the exception. It becomes the value of the ControlNumber property.
message (System.String): The error message.
RuleException(string, string, Exception)
Initializes a new instance of the RuleException class with the specified support control number, error message, and the exception that caused this exception.
Parameters
number (System.String): The support control number of the exception. It becomes the value of the ControlNumber property.
message (System.String): The error message.
inner (System.Exception): The exception that is the cause of this exception. It becomes the value of the InnerException property.
Properties
Example
try
{
// Evaluate a rule here
}
catch (CodeEffects.Rule.Common.RuleException ex)
{
Console.WriteLine($"{ex.ControlNumber}: {ex.Message}");
}
Inheritance
System.Object
System.Exception
- CodeEffects.Rule.Common.RuleException