Data.DB.TDataSetErrorEvent

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
type
typedef
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: Data.DB

Delphi

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

C++

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

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