Class ::tycho::ErrorMessage


Inherits: ::tycho::Message - Related constructs - Source File - Contents: public method
Issue an error message to the user. To issue an error message, simply call the Tcl command error. If the error occured in processing a background Tk command, then tkerror will be invoked, which in turn will create an instance of this class and pop up a modal dialog to inform the user. "Modal" means that nothing further will happen until the window is destroyed. Here is an example:
::tycho::ErrorMessage .xx -text {An error message}
wm deiconify .xx
The stack trace that you will get if you push the stack trace button on this example is irrelevant, since no error occurred.

Public constructs

Public Method

stackTrace
Show the stack trace in a window, if there is one. Note that this stack trace is that associated with the most recent error. That error may be one that was caught, and that therefore was never seen by the user. Normally, this method should only be invoked after an error that the user should see.

Index of classes



Author: Edward A. Lee
Version: @(#)ErrorMessage.itcl 1.23 11/12/96
Copyright: (c) 1995-1996 The Regents of the University of California.