Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 3 - Errors, Warnings, and Notices


About QuickDraw GX Errors, Warnings, and Notices

QuickDraw GX posts errors, warnings, or notices, depending upon the severity of the problem that was detected when your application was running. The three types of QuickDraw GX execution problems are

In addition to the posting of errors, warnings, and notices, QuickDraw GX supports application-defined error, warning, and notice handlers. You can use your own handlers or QuickDraw GX's errors, warnings, and notices either separately or together.

To obtain errors, warnings, and notices, either check for QuickDraw GX errors, warnings, and notices or install your application's error, warning, and notice handlers. The use of error, warning, and notice handlers is a simple and efficient method of managing errors, warnings, and notices. Error handlers are described in the section "Installing an Error, Warning, or Notice Handler" beginning on page 3-38.

Figure 3-1 shows the relationship of the two problem-management approaches.

Figure 3-1 QuickDraw GX and application-defined error, warning, and notice management

There are two versions of QuickDraw GX.

To determine if the debugging or non-debugging version is installed, use the Gestalt function described in the chapter "QuickDraw GX and the Macintosh Environment" in this book.

QuickDraw GX posts most errors and warnings only in the debugging version.
The non-debugging version posts errors and warnings if the error could not be anticipated at compile time--for example, running out of memory or disk space. You should correct application problems that result in errors and warnings while developing your application. The non-debugging version does not include most of the errors and warnings that the debugging version provides.

QuickDraw GX non-debugging and debugging errors are defined by the gxGraphicErrors enumeration given in the section "Errors" beginning on page 3-40. QuickDraw GX non-debugging and debugging warnings are defined by the gxGraphicWarnings enumeration given in the section "Warnings" beginning on page 3-48. QuickDraw GX debugging notices are defined by the gxGraphicNotices enumeration given in the section "Notices" beginning on page 3-51.


Subtopics
Non-Debugging Version
Debugging Version

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996