org.drools.rule
Class DuplicateRuleNameException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.drools.DroolsException
              extended byorg.drools.rule.RuleConstructionException
                  extended byorg.drools.rule.DuplicateRuleNameException
All Implemented Interfaces:
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

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
DuplicateRuleNameException(RuleSet ruleSet, Rule originalRule, Rule conflictingRule)
          Construct.
 
Method Summary
 Rule getConflictingRule()
          Retrieve the new conflicting Rule.
 Rule getOriginalRule()
          Retrieve the original Rule in the RuleSet.
 RuleSet getRuleSet()
          Retrieve the RuleSet.
 
Methods inherited from class org.drools.DroolsException
getLocalizedMessage, getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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-2004 The Codehaus. All Rights Reserved.