When an exception occurs, the compiler first attempts to use any direct monitor handler. If there is no direct monitor handler, the exception is mapped to a signal at run time, and the corresponding signal handler is called. By using the #pragma exception_handler directive to enable a direct monitor handler, you avoid the process for both the signal mapping and search for a signal handler.
For all exceptions specified by the #pragma exception_handler directive, the direct monitor handler marks each exception as handled; otherwise the exception is percolated again.
For information about #pragma exception_handler, see the WebSphere Development Studio: ILE C/C++ Compiler Reference.
For more information about using direct monitor handlers, seeWebSphere Development Studio: ILE C/C++ Compiler Reference.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.