Class 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.
See Also:
  • Constructor Details

    • DuplicateRuleNameException

      public DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule)
      Parameters:
      pkg - The Package.
      originalRule - The Rule already in the Package.
      conflictingRule - The new, conflicting Rule.
      See Also:
    • DuplicateRuleNameException

      public DuplicateRuleNameException(Package pkg, RuleImpl originalRule, RuleImpl conflictingRule, Throwable cause)
      Parameters:
      pkg - The Package.
      originalRule - The Rule already in the Package.
      conflictingRule - The new, conflicting Rule.
      See Also:
  • Method Details

    • getPackage

      public Package getPackage()
      Retrieve the Package.
      Returns:
      The Package.
    • getOriginalRule

      public RuleImpl getOriginalRule()
      Retrieve the original Rule in the Package.
      Returns:
      The Rule.
    • getConflictingRule

      public RuleImpl getConflictingRule()
      Retrieve the new conflicting Rule.
      Returns:
      The Rule.