Important: The information in this document is obsolete and should not be used for new development.
InstallExceptionHandler
You can use theInstallExceptionHandlerfunction to install an exception handler.
extern ExceptionHandler InstallExceptionHandler (ExceptionHandler theHandler);
theHandler- The address of the exception handler to be installed.
DESCRIPTION
TheInstallExceptionHandlerfunction installs the exception handler specified by thetheHandlerparameter. That handler replaces any existing exception handler associated with the current execution context. The newly installed handler remains active until you install some other handler or until you remove the current handler by callingInstallExceptionHandlerwiththeHandlerset tonil.
The
- IMPORTANT
- The
theHandlerparameter must be the address of a transition vector for the exception handler, not a universal procedure pointer.![]()
InstallExceptionHandlerfunction returns the address of any existing exception handler as its function result. If there is no exception handler in place
for the current execution context,InstallExceptionHandlerreturnsnil.SPECIAL CONSIDERATIONS
TheInstallExceptionHandlerfunction is available to any code executing in the PowerPC native environment. You do not need to call it if your application or other software exists as 680x0 code and hence executes under the 68LC040 Emulator on PowerPC processor-based Macintosh computers.