org.drools.rule
Class DuplicateRuleNameException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.drools.DroolsException
|
+--org.drools.rule.RuleConstructionException
|
+--org.drools.rule.DuplicateRuleNameException
- All Implemented Interfaces:
- java.io.Serializable
- public class DuplicateRuleNameException
- extends RuleConstructionException
Indicates an attempt to add a Rule
to a RuleSet
that already contains a Rule
with the same name.
- Author:
- bob mcwhirter
- See Also:
Rule
,
RuleSet
, Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DuplicateRuleNameException
public DuplicateRuleNameException(RuleSet ruleSet,
Rule originalRule,
Rule conflictingRule)
- Construct.
- Parameters:
ruleSet
- The RuleSet
.originalRule
- The Rule
already in the RuleSet
.conflictingRule
- The new, conflicting Rule
.
getRuleSet
public RuleSet getRuleSet()
- Retrieve the
RuleSet
.
- Returns:
- The
RuleSet
.
getOriginalRule
public Rule getOriginalRule()
- Retrieve the original
Rule
in the RuleSet
.
- Returns:
- The
Rule
.
getConflictingRule
public Rule getConflictingRule()
- Retrieve the new conflicting
Rule
.
- Returns:
- The
Rule
.
Copyright © 2001-2003 The Werken Company. All Rights Reserved.