Version 6 of throw

Updated 2018-09-28 13:33:23 by PeterLewerin
throw code message

Throw an error with the errorcode being code (a list), and the result string being message. An alternative to error.


Implemented in Tcl 8.6, from TIP#329 .

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


AMG: What are the advantages of [throw] over [error]?

[name redacted]: The commands are very similar, but there are some interesting differences, such as throw updating the value of the -errorstack member of the result options dictionary, which error doesn't always do. See Comparing error and throw [L1 ].