Important: The information in this document is obsolete and should not be used for new development.
MyUserGraphicsError
You can use theMyUserGraphicsErrorfunction to provide an application-defined error handler for your application.
void MyUserGraphicsError(gxGraphicsError error, long reference);
error- The QuickDraw GX error being passed to the handler.
reference- A
longvalue passed each time that an error occurs. This value can be used by the error handler for any purpose.DESCRIPTION
TheMyUserGraphicsErrorfunction is called with the error number posted by the failed function. TheMyUserGraphicsErrorfunction can evaluate the error and respond in any appropriate manner.The error handler is enabled and disabled by the use of the
GXSetUserGraphicsErrorfunction. If its parameter is set tonil, the error handler is disabled. If its parameter is notnil, the error handler is enabled and all errors detected by QuickDraw GX are passed to the error handler for processing and possible response.The
GXGetUserGraphicsErrorfunction returns the currently installed application-defined error handler.SEE ALSO
The use of this function is described in the section "Installing an Error, Warning, or Notice Handler" on page 3-38.QuickDraw GX non-debugging errors that may be sent to the error handler are listed in section "Errors" beginning on page 3-6. Debugging errors are listed in the section "Errors" beginning on page 3-6.
The
GXSetUserGraphicsErrorfunction is described on page 3-56.The
GXGetUserGraphicsErrorfunction is described on page 3-57.