home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource
/
6_17.tcl
< prev
next >
Wrap
Text File
|
2003-04-16
|
193b
|
20 lines
#
# Example 6-17
# Raising an error.
#
proc foo {} {
error bogus
}
foo
#=> bogus
set errorInfo
#=> bogus
while executing
"error bogus"
(procedure "foo" line 2)
invoked from within
"foo"