Class DuplicateRuleNameException

  • All Implemented Interfaces:
    java.io.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:
    Rule, Package, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RuleImpl getConflictingRule()
      Retrieve the new conflicting Rule.
      RuleImpl getOriginalRule()
      Retrieve the original Rule in the Package.
      java.lang.Package getPackage()
      Retrieve the Package.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, 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​(java.lang.Package pkg,
                                          RuleImpl originalRule,
                                          RuleImpl conflictingRule)
        Parameters:
        pkg - The Package.
        originalRule - The Rule already in the Package.
        conflictingRule - The new, conflicting Rule.
        See Also:
        Exception()
      • DuplicateRuleNameException

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

      • getPackage

        public java.lang.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.