Common Desktop Environment: Programmer's Overview

Displaying Error Messages from Your Application

Applications in the Common Desktop Environment follow a common model for presenting error messages and warnings. Users running your application expect messages to be displayed in message footers, error dialog boxes, or warning dialog boxes, with further explanations available in online help, when appropriate.

This section outlines conventions for displaying error messages in your application. Because of the way message text is handled, it is important to follow these error presentation guidelines precisely. For example, casual users who start your application from the Front Panel never see messages that you send to standard error or standard out. In the Common Desktop Environment, such messages are directed to log files ($HOME/.dt/*log) that many users do not routinely examine or know about.

How to Present Error Messages

Follow these rules when deciding where to tell users about warnings, messages, and error conditions:

What Information to Present in Error Dialogs

A good error dialog or warning dialog gives a user the following information:

Linking Message Dialogs to Online Help

In cases where additional background information is required, or where it takes more than four or five lines of a dialog to completely explain an error, add a button that links the user to the appropriate section of online help.

Related Documentation

For details on displaying error messages in your application and linking message dialogs to online help, see the Solaris Common Desktop Environment: Programmer's Guide.