Version 3 of try

Updated 2009-04-28 16:47:11 by LV

There may be many handlers, each of which is described by 4 words. There are currently two types of handler defined:

on code variableList script
Exact matching of the exception code (i.e. the value returned by a catch). The code may be expressed as an integer or one of the following literal words: ok, error, return, break, or continue. Those literals correspond to the integers 0 through 4 respectively.
trap errorPrefixList variableList script
List-prefix matching of the errorcode.

Documentation

Manual Page

http://www.tcl.tk/man/tcl8.6/TclCmd/try.htm