Home | Previous Page | Next Page   Database Access > Handling Exceptions and Events >

Event-Handling Mechanisms

An event-handling mechanism provides a way for one DataBlade API module to inform another module (or another part of the same module) that an event has occurred during execution of a function. An event-handling mechanism has two parts:

This division of event-handling responsibility enables you to put common event-handling code for a particular condition in a single location, in a callback function. Any DataBlade API module that requires the associated event handling can then register this callback function.

When an event occurs, the DataBlade API performs event handling based on whether it finds a registered callback that can catch (or handle) the event, as follows:

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]