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:
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(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule)DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, 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.PackagegetPackage()Retrieve thePackage.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DuplicateRuleNameException
public DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule)
- Parameters:
pkg- ThePackage.originalRule- TheRulealready in thePackage.conflictingRule- The new, conflictingRule.- See Also:
Exception()
-
DuplicateRuleNameException
public DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, Throwable cause)
- Parameters:
pkg- ThePackage.originalRule- TheRulealready in thePackage.conflictingRule- The new, conflictingRule.- See Also:
Exception(Throwable cause)
-
-
Method Detail
-
getPackage
public 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.
-
-