当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
DuplicateRuleNameException (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.rule
Class DuplicateRuleNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.drools.RuntimeDroolsException
org.drools.rule.RuleConstructionException
org.drools.rule.DuplicateRuleNameException
- All Implemented Interfaces:
- Serializable
public class DuplicateRuleNameException
- extends RuleConstructionException
Indicates an attempt to add a Rule
to a Package
that already contains a Rule
with the same name.
- Author:
- bob mcwhirter
- See Also:
Rule
,
Package
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DuplicateRuleNameException
public DuplicateRuleNameException(Package pkg,
Rule originalRule,
Rule conflictingRule)
- Parameters:
pkg
- The Package
.originalRule
- The Rule
already in the Package
.conflictingRule
- The new, conflicting Rule
.- See Also:
Exception.Exception()
DuplicateRuleNameException
public DuplicateRuleNameException(Package pkg,
Rule originalRule,
Rule conflictingRule,
Throwable cause)
- Parameters:
pkg
- The Package
.originalRule
- The Rule
already in the Package
.conflictingRule
- The new, conflicting Rule
.- See Also:
Exception.Exception(Throwable cause)
getPackage
public Package getPackage()
- Retrieve the
Package
.
- Returns:
- The
Package
.
getOriginalRule
public Rule getOriginalRule()
- Retrieve the original
Rule
in the Package
.
- Returns:
- The
Rule
.
getConflictingRule
public Rule getConflictingRule()
- Retrieve the new conflicting
Rule
.
- Returns:
- The
Rule
.
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.