*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> Tcl/catch (3)              
Title
Content
Arch
Section
 

Contents


catch(3Tcl)							   catch(3Tcl)


NAME    [Toc]    [Back]

     catch - Evaluate script and trap exceptional returns

SYNOPSIS    [Toc]    [Back]

     catch script ?varName?

DESCRIPTION    [Toc]    [Back]

     The catch command may be used to prevent errors from aborting command
     interpretation.  Catch calls the Tcl interpreter recursively to execute
     script, and always	returns	a TCL_OK code, regardless of any errors	that
     might occur while executing script.  The return value from	catch is a
     decimal string giving the code returned by	the Tcl	interpreter after
     executing script.	This will be 0 (TCL_OK)	if there were no errors	in
     script; otherwise it will have a non-zero value corresponding to one of
     the exceptional return codes (see tcl.h for the definitions of code
     values).  If the varName argument is given, then it gives the name	of a
     variable; catch will set the variable to the string returned from script
     (either a result or an error message).

     Note that catch catches all exceptions, including those generated by
     break and continue	as well	as errors.

KEYWORDS    [Toc]    [Back]

     catch, error


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
eval IRIX Evaluate a Tcl script
source IRIX Evaluate a file as a Tcl script
ieee_set_state_at_signal Tru64 libc ieee trap enable support routines
ieee Tru64 libc ieee trap enable support routines
ieee_ignore_state_at_signal Tru64 libc ieee trap enable support routines
ieee_get_state_at_signal Tru64 libc ieee trap enable support routines
ieee_get_fp_control Tru64 libc ieee trap enable support routines
ieee_set_fp_control Tru64 libc ieee trap enable support routines
snmp_traprcv Tru64 A program that listens for SNMP trap messages and prints any it receives
expr OpenBSD evaluate expression
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service