home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource
/
6_18.tcl
< prev
next >
Wrap
Text File
|
2003-04-16
|
216b
|
14 lines
#
# Example 6-18
# Preserving errorInfo when calling error.
#
if {[catch {foo} result]} {
global errorInfo
set savedInfo $errorInfo
# Attempt to handle the error here, but cannot...
error $result $savedInfo
}