Using the Error Manager
For each level of exceptional condition (that is, for errors, warnings, and notices), QuickDraw 3D keeps track of the first and the most recent exceptional conditions that have occurred since the last time an exceptional condition of that type was posted. For example, when the first error occurs, that error is posted both as the first and as the most recent error. Any subsequent error is posted as the most recent error to occur.When you call a
_Getfunction to retrieve an error, warning, or notice, the function returns, as its function result, the most recent error, warning, or notice. For example, when you callQ3Error_Get, it returns, as its function result, the most recent error.Q3Error_Getalso returns, through itsfirstErrorparameter, the oldest unreported error that occurred during a QuickDraw 3D routine. You can set this parameter toNULLif you do not care about the oldest unreported error.
Once you've called the
- Note
- The oldest unreported error, warning, or
notice is sometimes called sticky.![]()
Q3Error_Getfunction to retrieve the most recent and the oldest unreported QuickDraw 3D errors, the Error Manager automatically clears those error codes the next time you call a QuickDraw 3D function that is not part of the Error Manager.If an error occurs in the operating system on which QuickDraw 3D is running, the Error Manager posts an error indicating which the operating system encountered the error. You can then call an appropriate function to retrieve
the system-specific error. For instance, if an error occurs while reading or writing a file in the Macintosh Operating System, then theQ3Error_Getfunction returns the errorkQ3ErrorMacintoshError. In that case, you can call theQ3MacintoshError_Getfunction to get the Macintosh-specific error code.