About Error Handling in Dialog Boxes (DCL)

Dialog boxes can display error messages and warnings with a text tile known as an error tile (errtile), or with a nested alert box.

The following guidelines apply to both:

Error Tiles

Use an error tile for minor errors or warnings, especially those that arise from typographical errors. Do not display errors in text tiles used for status messages. These are easy to overlook. Error tiles should appear at the bottom of a dialog box.

Error Forgiveness

Make your dialog boxes forgiving, so users feel free to explore without fear of making irreversible mistakes. Report minor errors by messages in an error tile at the bottom of the dialog box. Report more serious errors by displaying an alert box. The alert function displays a simple alert box (with a single OK button). If the user selects a potentially destructive or time-consuming action, the dialog box should display an alert box that gives the user a choice of proceeding with the operation or canceling it.

For example, in the Block Definition dialog box, an alert box appears when users attempt to create a block that already exists. Users can then choose to proceed and overwrite the original block, or cancel the operation without making changes:

Nested dialog boxes that alert users should return to the previous dialog box. Terminate the current nest of dialog boxes only in the case of serious or potentially fatal errors.