Package gnu.mapping

Class WrongArguments

All Implemented Interfaces:
Serializable

public class WrongArguments extends IllegalArgumentException
See Also:
  • Field Details

    • number

      public int number
    • usage

      public String usage
    • procname

      public String procname
  • Constructor Details

    • WrongArguments

      public WrongArguments(Procedure proc, int argCount)
    • WrongArguments

      public WrongArguments(String name, int n, String u)
  • Method Details

    • checkArgCount

      public static String checkArgCount(Procedure proc, int argCount, boolean hasSplices)
      Returns an error message if the number of arguments in a call is invalid.
      Parameters:
      proc - the Procedure being called
      argCount - the number of non-splice arguments in the call
      Returns:
      null, if the number of arguments is ok; otherwise a suitable error message
    • checkArgCount

      public static String checkArgCount(String pname, int min, int max, int argCount)
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable