JavaScript is disabled on your browser.
gnu.mapping
Class WrongArguments
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- gnu.mapping.WrongArguments
-
-
Field Summary
Fields
| Modifier and Type |
Field and Description |
int |
number |
java.lang.String |
procname |
java.lang.String |
usage |
-
Method Summary
All Methods
| 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 () |
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Method Detail
-
checkArgCount
public 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.
- 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 java.lang.String checkArgCount(java.lang.String pname,
int min,
int max,
int argCount)