Data.DB.TDataSetErrorEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TDataSetErrorEvent = procedure(DataSet: TDataSet; E: EDatabaseError;
var Action: TDataAction) of object;

C++

typedef void __fastcall (__closure *TDataSetErrorEvent)(TDataSet* DataSet, EDatabaseError* E, TDataAction &Action);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Data.DB.pas
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).

See Also