All Implemented Interfaces:
Serializable

public class ArityMismatchException extends IMPLogicsException
Thrown to indicate that the quantity of Term (arity) of an object does not match expected. This could be the case for the classes Atom, Predicate or instances of Literal.
See Also:
  • Constructor Details

    • ArityMismatchException

      public ArityMismatchException(int expected, int provided)
      Constructs an ArityMismatchException with arguments for the provided and expected arities.

      The arities are included in this exception's detail message. The exact presentation format of the detail message is unspecified.

      Parameters:
      expected - expected arity.
      provided - provided arity.