Class ConflictingRuleException

All Implemented Interfaces:
Serializable

public class ConflictingRuleException extends RuleEngineException
Exception used to indicate conflicting results have been detected during the evaluation of rules for an attribute.
Since:
7.0
Author:
A. Pragt
See Also:
  • Constructor Details

    • ConflictingRuleException

      public ConflictingRuleException(ValueReference attribute, String firstRule, String secondRule)
      Constructs the exception with the required arguments.
      Parameters:
      attribute - The attribute for which the conflicting results were detected.
      firstRule - The first rule that sourced a value for the attribute.
      secondRule - The second rule that sourced a value for the attribute.
  • Method Details

    • getAttribute

      public ValueReference getAttribute()
      This method returns the attribute for which the conflicting results were detected.
      Returns:
      The attribute for which the conflicting results were detected.
    • getFirstRule

      public String getFirstRule()
      This method returns the name of the first rule that sourced a value for the attribute.
      Returns:
      the name of the first rule that sourced a value for the attribute.
    • getSecondRule

      public String getSecondRule()
      This method returns the name of the second rule that sourced a value for the attribute.
      Returns:
      the name of the second rule that sourced a value for the attribute.