Class ConflictingRuleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.rule.RuleEngineException
com.aquima.interactions.rule.exception.ConflictingRuleException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConflictingRuleException
(ValueReference attribute, String firstRule, String secondRule) Constructs the exception with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the attribute for which the conflicting results were detected.This method returns the name of the first rule that sourced a value for the attribute.This method returns the name of the second rule that sourced a value for the attribute.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConflictingRuleException
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
This method returns the attribute for which the conflicting results were detected.- Returns:
- The attribute for which the conflicting results were detected.
-
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
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.
-