summaryrefslogtreecommitdiffstats
path: root/doc/error.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/error.n')
-rw-r--r--doc/error.n11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/error.n b/doc/error.n
index 31af917..d61bd7b 100644
--- a/doc/error.n
+++ b/doc/error.n
@@ -39,19 +39,19 @@ to return a stack trace reflecting the original point of occurrence
of the error:
.PP
.CS
-\fBcatch {...} errMsg
+catch {...} errMsg
set savedInfo $::errorInfo
\&...
-error $errMsg $savedInfo\fR
+\fBerror\fR $errMsg $savedInfo
.CE
.PP
When working with Tcl 8.5 or later, the following code
should be used instead:
.PP
.CS
-\fBcatch {...} errMsg options
+catch {...} errMsg options
\&...
-return -options $options $errMsg\fR
+return -options $options $errMsg
.CE
.PP
If the \fIcode\fR argument is present, then its value is stored
@@ -73,3 +73,6 @@ if {1+2 != 3} {
catch(n), return(n)
.SH KEYWORDS
error, exception
+'\" Local Variables:
+'\" mode: nroff
+'\" End: