EXCEPTION
tcl.lang.TclNumArgsException -- This class signals Tcl errors regarding wrong number of arguments.
EXTENDS
tcl.lang.TclException
CONSTRUCTORS
ARGUMENTS
DESCRIPTION
TclNumArgsException
SEE ALSO
KEYWORDS

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

Interp interp ()
Internal representation to be stored in newly created TclObject.

int argc ()
The number of initial elements of argv that are appropriate arguments.

TclObject argv[] ()
The array of arguments that perportedly has the wrong number of elements.

String msg ()
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
Copyright © 1996-1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.