public class DuplicateRuleNameException extends RuleConstructionException
Rule to a Package
that already contains a Rule with the same name.Rule,
Package,
Serialized Form| Constructor and Description |
|---|
DuplicateRuleNameException(Package pkg,
RuleImpl originalRule,
RuleImpl conflictingRule) |
DuplicateRuleNameException(Package pkg,
RuleImpl originalRule,
RuleImpl conflictingRule,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
RuleImpl |
getConflictingRule()
Retrieve the new conflicting
Rule. |
RuleImpl |
getOriginalRule()
Retrieve the original
Rule in the Package. |
Package |
getPackage()
Retrieve the
Package. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule)
pkg - The Package.originalRule - The Rule already in the Package.conflictingRule - The new, conflicting Rule.Exception.Exception()public DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, Throwable cause)
pkg - The Package.originalRule - The Rule already in the Package.conflictingRule - The new, conflicting Rule.Exception.Exception(Throwable cause)public Package getPackage()
Package.Package.public RuleImpl getOriginalRule()
Rule in the Package.Rule.public RuleImpl getConflictingRule()
Rule.Rule.Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.