IBX.IBCustomDataSet.TIBUpdateErrorEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TIBUpdateErrorEvent)(Data::Db::TDataSet* DataSet, Data::Db::EDatabaseError* E, Data::Db::TUpdateKind UpdateKind, TIBUpdateAction &UpdateAction);

Properties

Type Visibility Source Unit Parent
typedef public IBX.IBCustomDataSet.hpp IBX.IBCustomDataSet IBX.IBCustomDataSet

Description

TIBUpdateErrorEvent is the type of event handlers that respond when an IBX dataset encounters an error applying a cached update.

DataSet is the TIBCustomDataSet descendant that is attempting to apply cached updates.

E is an EDBEngineError object from which an application can extract an error message and the actual cause of the error condition. An OnUpdateError handler can use this information to determine how to respond to the error condition.

UpdateKind indicates whether the error occurred while inserting, deleting, or modifying a record.

UpdateAction indicates the action to take when the OnUpdateError handler exits. On entry into the handler, UpdateAction is always set to uaFail. If OnUpdateError can handle or correct the error, set UpdateAction to uaRetry before exiting the error handler.

See Also