TclNumArgsException(3)

EXCEPTION
tcl.lang.TclNumArgsException -- This class signals Tcl errors regarding wrong number of arguments.

EXTENDS
tcl.lang.TclException

CONSTRUCTORS

TclNumArgsException(Interp interp, int argc, TclObject argv[], String msg)

ARGUMENTS
Internal representation to be stored in newly created TclObject. The number of initial elements of argv that are appropriate arguments. The array of arguments that perportedly has the wrong number of elements. Error message to append to the argc initial elements of argv.

DESCRIPTION
TclNumArgsException is a convenient subclass of TclException for command procedures to indicate that they have received the wrong number of arguments.

TclNumArgsException
    The TclNumArgsException constructor creates a TclException with the completion code TCL.ERROR. If the interp is non-null, an error message is created by appending msg to the first argc elements of argv. If msg is null, the error message created is simply the first argc elements of argv. The value of the interp's result object is set to the newly created error message.

SEE ALSO
TclException, TclRuntimeError, Interp

KEYWORDS
arguments, error, error checking, exception, return, result