| Creates a TclException with the appropiate Tcl error
message for having the wring number of arguments to a Tcl command.
Example:
if (argv.length != 3) {
throw new TclNumArgsException(interp, 1, argv, "option name");
}
Parameters: interp - current Interpreter. Parameters: argc - the number of arguments to copy from the offendingcommand to put into the error message. Parameters: argv - the arguments of the offending command. Parameters: message - extra message to appear in the error message thatexplains the proper usage of the command. exception: TclException - is always thrown. |