FireDAC.Comp.Client.TFDExecuteErrorEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TFDExecuteErrorEvent)(System::TObject* ASender, int ATimes, int AOffset, Firedac::Stan::Error::EFDDBEngineException* AError, Firedac::Stan::Intf::TFDErrorAction &AAction);

Properties

Type Visibility Source Unit Parent
typedef public FireDAC.Comp.Client.hpp FireDAC.Comp.Client FireDAC.Comp.Client

Description

TFDExecuteErrorEvent is the function type for an OnExecuteError event.

TFDExecuteErrorEvent has the following parameters:

Parameter Meaning

ASender

The reference to the dataset.

ATimes

The current Array DML size. If the full operation is split into several small operations (on Firebird, for example), ATimes may be different from the ATimes parameter value of the Execute method.

AOffset

The current Array DML offset. If there are skipped erroneous rows or the full operation is split into several small operations (on Firebird, for example), AOffset may be different from the AOffset parameter value of the Execute method.

AError

The original DBMS returned error. Check AError.Errors[i].RowIndex for the index of the erroneous row in the parameters array.

AAction

The action dataset should take place after it returns from the event handler.

See Also