public class DuplicateRuleNameException extends RuleConstructionException
Rule
to a Package
that already contains a Rule
with the same name.Rule
,
Package
,
Serialized FormConstructor and Description |
---|
DuplicateRuleNameException(Package pkg,
Rule originalRule,
Rule conflictingRule) |
DuplicateRuleNameException(Package pkg,
Rule originalRule,
Rule conflictingRule,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Rule |
getConflictingRule()
Retrieve the new conflicting
Rule . |
Rule |
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, toString
public DuplicateRuleNameException(Package pkg, Rule originalRule, Rule conflictingRule)
pkg
- The Package
.originalRule
- The Rule
already in the Package
.conflictingRule
- The new, conflicting Rule
.Exception.Exception()
public DuplicateRuleNameException(Package pkg, Rule originalRule, Rule 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 Rule getOriginalRule()
Rule
in the Package
.Rule
.public Rule getConflictingRule()
Rule
.Rule
.Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.