Class ArityException

All Implemented Interfaces:
Serializable

public class ArityException extends ATPException
Exception thrown when a formula has an incorrect arity for a predicate. This occurs when a predicate is used with the wrong number of arguments.
See Also:
  • Constructor Details

    • ArityException

      public ArityException(String formula, String predicateName)
      Create a new ArityException
      Parameters:
      formula - The formula containing the arity error
      predicateName - The predicate with incorrect arity
  • Method Details

    • getFormula

      public String getFormula()
      Returns:
      The formula containing the arity error
    • getPredicateName

      public String getPredicateName()
      Returns:
      The predicate name with incorrect arity
    • getSuggestion

      public String getSuggestion()
      Description copied from class: ATPException
      Get a suggestion for how to resolve this error. Subclasses should override with more specific suggestions.
      Overrides:
      getSuggestion in class ATPException
      Returns:
      Suggestion text for the user
    • getDetailedMessage

      public String getDetailedMessage()
      Description copied from class: ATPException
      Generate a detailed, human-readable error message including context.
      Overrides:
      getDetailedMessage in class ATPException
      Returns:
      Detailed message suitable for display in UI