Package gnu.mapping
Class WrongArguments
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- gnu.mapping.WrongArguments
-
- All Implemented Interfaces:
Serializable
public class WrongArguments extends IllegalArgumentException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrongArguments(Procedure proc, int argCount)
WrongArguments(String name, int n, String u)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
checkArgCount(Procedure proc, int argCount, boolean hasSplices)
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()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
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 calledargCount
- the number of non-splice arguments in the call- Returns:
- null, if the number of arguments is ok; otherwise a suitable error message
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-