ErrorHandler - Specify an error handler for Ers error messages

Function

Specify an error handler for Ers error messages

Description

This routine specifies the name of a Tcl procedure which will be invoked whenever an Ers error message is reported.

Call

ErrorHandler [command]

Parameters

>commandstringA Tcl command to be invoked when an error is reported. The command will be appended with an argument which is a string containing the error message (if there are more than one error messages they will be separated by newline characters in the string). The flags -highlight, -alarm and -bell may be appended if any of the reported messages had those flags set. If not supplied, the handler is reset to output messages to stderr.

Language

Tcl

See Also

DTCL manual, MessageHandler, Ers manual.

Support

Jeremy Bailey, AAO

Click here for the DRAMA home page and here for the AAO home page.

 For more information, contact tjf@aaoepp.aao.gov.au