TDataSetErrorEvent procedure type
Error handling callback.
Declaration
TDataSetErrorEvent = procedure(DataSet: TDataSet; E: EDatabaseError;
var DataAction: TDataAction) of objectArguments
DataSet | Dataset that triggered the event. |
E | Exception object that caused the operation to fail. |
DataAction | Action to take upon return of the event handler. |
Description
TDatasetErrorEvent is used by the
OnEditError,
OnPostError
and
OnDeleteError event handlers to allow the programmer to specify what should be done if
an update operation fails with an exception: The
Dataset parameter indicates what dataset triggered
the event, the
E parameter contains the exception object. The
DataAction must be set by the
event handler, and based on it's return value, the dataset instance will take appropriate action. The default
value is
daFail, i.e. the exception will be raised again. For a list of available return values,
see
TDataAction.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
