Package org.drools.base.rule
Class DuplicateRuleNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.drools.base.rule.RuleConstructionException
org.drools.base.rule.DuplicateRuleNameException
- All Implemented Interfaces:
Serializable
Indicates an attempt to add a
Rule to a Package
that already contains a Rule with the same name.- See Also:
-
RulePackage- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule) DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the new conflictingRule.Retrieve the originalRulein thePackage.Retrieve thePackage.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateRuleNameException
- Parameters:
pkg- ThePackage.originalRule- TheRulealready in thePackage.conflictingRule- The new, conflictingRule.- See Also:
-
DuplicateRuleNameException
public DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, Throwable cause) - Parameters:
pkg- ThePackage.originalRule- TheRulealready in thePackage.conflictingRule- The new, conflictingRule.- See Also:
-
-
Method Details
-
getPackage
Retrieve thePackage.- Returns:
- The
Package.
-
getOriginalRule
Retrieve the originalRulein thePackage.- Returns:
- The
Rule.
-
getConflictingRule
Retrieve the new conflictingRule.- Returns:
- The
Rule.
-