I try to test all input from client so errors will not occur. Additionally I
might try enclosing functions that could fail into a try/catch block. But
just to cover everything, is there a way to supress error messages to
stdout.. I rather have the error messages dumped to a file ONLY or better
yet, have some kind of callback function like "on_Error" that is passed the
error string that otherwise would be dumped to STDOUT. Then I can choose to
puts this or write it to a log file or something.
Lisa
Michael
For errors encoutered during your startup (foreground) sequence the
only suggestion is what I call "the big catch" - wrap all
or most of your code in a single giant catch command.
Of course it would probably be better to intelligently
wrap as needed but you asked about blanket coverage.
There is no way I recall just now to make Tcl just ignore errors.
They need to be caught.
Roy
>
> Lisa
>
>
seems exceptions package is not standard part of tcl distribution, or
tcllib. :(
Lisa
"Roy Terry" <royt...@earthlink.net> wrote in message
news:LBjsf.3058$nu6....@newsread1.news.pas.earthlink.net...
'catch' in Tcl roughly is the same as 'try' in other languages.
> seems exceptions package is not standard part of tcl distribution, or
> tcllib. :(
>
It is. In fact it is built in to the interpreter. Read about the
'catch' command.