Event information

When a callback function is invoked for a particular event, the DataBlade® API passes an event-type structure as the third parameter of this function. This event-type structure contains information about the event that triggered the callback.

The DataBlade API stores event information in one of the following structures based on the event type:
  • Exceptions and errors are stored in error descriptors.
  • State transitions are stored in transition descriptors.
The following table shows the event types and the corresponding event-type structures that describe them.
Event-type structure Event type
Error descriptor (MI_ERROR_DESC)

MI_Exception
MI_Client_Library_Error

Transition descriptor (MI_TRANSITION_DESC)

MI_EVENT_SAVEPOINT
MI_EVENT_COMMIT_ABORT
MI_EVENT_POST_XACT
MI_EVENT_END_STMT
MI_EVENT_END_XACT
MI_EVENT_END_SESSION
MI_Xact_State_Change

The milib.h header file defines the MI_ERROR_DESC and MI_TRANSITION_DESC structures.