Data.DB.TDataSetErrorEvent
C++
typedef void __fastcall (__closure *TDataSetErrorEvent)(TDataSet* DataSet, EDatabaseError* E, TDataAction &Action);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Data.DB.hpp | Data.DB | Data.DB |
Description
TDataSetErrorEvent is the type of event handler that occurs when TDataSet raises an exception.
TDataSetErrorEvent is the type of event handler that occurs when a TDataSet raises an exception. Working with TDataSets can raise exceptions when attempting to insert, update, or delete records.
The DataSet parameter specifies the dataset that generated the E exception, while the Action parameter should be set by the developer with one of the possible actions defined by TDataAction (daFail, daAbort, or daRetry).