Package org.drools.core.rule
Class DuplicateRuleNameException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.drools.core.rule.RuleConstructionException
-
- org.drools.core.rule.DuplicateRuleNameException
-
- All Implemented Interfaces:
java.io.Serializable
public class DuplicateRuleNameException extends RuleConstructionException
Indicates an attempt to add aRuleto aPackagethat already contains aRulewith the same name.- See Also:
Rule,Package, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateRuleNameException(java.lang.Package pkg, RuleImpl originalRule, RuleImpl conflictingRule)DuplicateRuleNameException(java.lang.Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleImplgetConflictingRule()Retrieve the new conflictingRule.RuleImplgetOriginalRule()Retrieve the originalRulein thePackage.java.lang.PackagegetPackage()Retrieve thePackage.
-
-
-
Constructor Detail
-
DuplicateRuleNameException
public DuplicateRuleNameException(java.lang.Package pkg, RuleImpl originalRule, RuleImpl conflictingRule)- Parameters:
pkg- ThePackage.originalRule- TheRulealready in thePackage.conflictingRule- The new, conflictingRule.- See Also:
Exception()
-
DuplicateRuleNameException
public DuplicateRuleNameException(java.lang.Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, java.lang.Throwable cause)- Parameters:
pkg- ThePackage.originalRule- TheRulealready in thePackage.conflictingRule- The new, conflictingRule.- See Also:
Exception(Throwable cause)
-
-
Method Detail
-
getPackage
public java.lang.Package getPackage()
Retrieve thePackage.- Returns:
- The
Package.
-
getOriginalRule
public RuleImpl getOriginalRule()
Retrieve the originalRulein thePackage.- Returns:
- The
Rule.
-
getConflictingRule
public RuleImpl getConflictingRule()
Retrieve the new conflictingRule.- Returns:
- The
Rule.
-
-