First page Back Continue Last page Overview Image
8.6 Control Structures – Errors
[329][348] try, throw, return -errorstack
throw $type $message
↔ error $message $type
↔ (note quite) return -code error -errorcode $type $message
-errorstack / info errorstack – Data is an actual list. Key-Value pairs. Fully resolved commands. IOW where the regular error stack shows “foo $var” the -errorstack shows “foo bar”, assuming “var” contains “bar”.
CALL {foo a} UP 1 CALL {bar b}
The above value indicates that [foo a] was called by [bar b] through [uplevel 1].