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 aRule
to aPackage
that already contains aRule
with 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 RuleImpl
getConflictingRule()
Retrieve the new conflictingRule
.RuleImpl
getOriginalRule()
Retrieve the originalRule
in thePackage
.Package
getPackage()
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
- TheRule
already in thePackage
.conflictingRule
- The new, conflictingRule
.- See Also:
Exception()
-
DuplicateRuleNameException
public DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, Throwable cause)
- Parameters:
pkg
- ThePackage
.originalRule
- TheRule
already 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 originalRule
in thePackage
.- Returns:
- The
Rule
.
-
getConflictingRule
public RuleImpl getConflictingRule()
Retrieve the new conflictingRule
.- Returns:
- The
Rule
.
-
-