Error handling in the C++ code consists of a collection library routines, described in error(3) , and a facility for specifying an error handler routine to be called to report errors. The error reporting routines keep a copy of the most recent error message, which can be retrieved using the getError () routine. In Tcl based applications, these routines normally generate Tcl error messages in the main interpreter, while in non-Tcl applications, the default action is to print the error messages on stderr. The TclCommand(3) class automatically defines an error handler for Tcl.
Set a routine to be called when errors occur and return a pointer to the previous handler. |
|
Simple default error handler: print the error message on stdout. |
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory