Important: The information in this document is obsolete and should not be used for new development.
InstallExceptionHandler
You can use theInstallExceptionHandler
function to install an exception handler.
extern ExceptionHandler InstallExceptionHandler (ExceptionHandler theHandler);
theHandler
- The address of the exception handler to be installed.
DESCRIPTION
TheInstallExceptionHandler
function installs the exception handler specified by thetheHandler
parameter. 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 callingInstallExceptionHandler
withtheHandler
set tonil
.
The
- IMPORTANT
- The
theHandler
parameter must be the address of a transition vector for the exception handler, not a universal procedure pointer.InstallExceptionHandler
function 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,InstallExceptionHandler
returnsnil
.SPECIAL CONSIDERATIONS
TheInstallExceptionHandler
function 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.