public class WrongArguments
extends java.lang.IllegalArgumentException
Modifier and Type | Field and Description |
---|---|
int |
number |
java.lang.String |
procname |
java.lang.String |
usage |
Constructor and Description |
---|
WrongArguments(Procedure proc,
int argCount) |
WrongArguments(java.lang.String name,
int n,
java.lang.String u) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
checkArgCount(Procedure proc,
int argCount,
boolean hasSplices)
Returns an error message if the number of arguments in a call is invalid.
|
static java.lang.String |
checkArgCount(java.lang.String pname,
int min,
int max,
int argCount) |
java.lang.String |
getMessage() |
public int number
public java.lang.String usage
public java.lang.String procname
public WrongArguments(Procedure proc, int argCount)
public WrongArguments(java.lang.String name, int n, java.lang.String u)
public static java.lang.String checkArgCount(Procedure proc, int argCount, boolean hasSplices)
proc
- the Procedure being calledargCount
- the number of non-splice arguments in the callpublic static java.lang.String checkArgCount(java.lang.String pname, int min, int max, int argCount)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable