Disarming an Exception

The jomDisarmExceptionHandler call, shown in the following example, requests the Jade Object Manager kernel to disarm the most-recent armed exception handler for exceptions of the specified class and within the specified scope.

int jomDisarmExceptionHandler(const DskHandle   *pHandle,
                              const DskObjectId *pExceptionClass,
                              BYTE              scope,
                              UInt32            lineNo)

All non-global exception handlers are disarmed when the method within which they were armed finishes.

Care should be taken when disarming a local exception handler. The search for a handler for exceptions of the specified class is not limited to the current method. If a suitable exception handler is not found in the current method, the exception handlers in calling methods are also checked. The getExceptionHandlerStack method of the Process class can be used to determine what exception handlers are currently armed.

The parameters for this call are described in the following subsections.