From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property OnError: TFDErrorEvent read FOnError write FOnError;


__property Firedac::Stan::Error::TFDErrorEvent OnError = {read=FOnError, write=FOnError};


Type Visibility Source Unit Parent
event public
FireDAC.Comp.Client TFDAdaptedDataSet


The event is triggered when an error is generated, while the dataset is talking to the DBMS.

The OnError event is triggered, when the dataset executes one of the following dataset operations and an error is generated:

  • Prepare. The dataset is preparing the DBMS command for execution.
  • Open. The dataset is executing the DBMS command to open the cursor.
  • ExecSQL/ExecProc/Execute. The dataset is executing the DBMS command.
  • Fetch. The dataset is fetching rows from the cursor.

You can also use the OnExecuteError event to handle the Array DML errors, and the OnUpdateError event to handle the updates posting errors.

See Also