gnu.mapping
Class WrongArguments
IllegalArgumentException
gnu.mapping.WrongArguments
public class WrongArguments
extends IllegalArgumentException
procname
public String procname
WrongArguments
public WrongArguments(Procedure proc,
int argCount)
WrongArguments
public WrongArguments(java.lang.String name,
int n,
java.lang.String u)
checkArgCount
public static String checkArgCount(String pname,
int min,
int max,
int argCount)
checkArgCount
public static String checkArgCount(Procedure proc,
int argCount)
Returns an error message if the number of arguments in a call is invalid.
proc
- the Procedure being calledargCount
- the number of arguments in the call
- null, if the number of arguments is ok;
otherwise a suitable error message
getMessage
public String getMessage()