gnu.mapping
public class WrongArguments extends IllegalArgumentException
Field Summary | |
---|---|
int | number |
String | procname |
String | usage |
Constructor Summary | |
---|---|
WrongArguments(Procedure proc, int argCount) | |
WrongArguments(String name, int n, String u) |
Method Summary | |
---|---|
static String | checkArgCount(Procedure proc, int argCount) Returns an error message if the number of arguments in a call is invalid. |
static String | checkArgCount(String pname, int min, int max, int argCount) |
String | getMessage() |
Parameters: proc the Procedure being called argCount the number of arguments in the call
Returns: null, if the number of arguments is ok; otherwise a suitable error message