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

  • ControlNumber

    Type: System.String

    Gets the support control number of this exception. Use this value when contacting Code Effects Software for technical support. The property is read-only.

Example

try
{
	// Evaluate a rule here
}
catch (CodeEffects.Rule.Common.RuleException ex)
{
	Console.WriteLine($"{ex.ControlNumber}: {ex.Message}");
}

Inheritance

Ask on Stack Overflow - Yes, it's still active
Ask in GitHub Discussions

p102

l097 --

l102

p101

×