[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Event triggered when a post operation fails.
Source position: db.pas line 1714
public property TDataSet.OnPostError : TDataSetErrorEvent |
OnPostError is triggered when the TDataset.Post method fails to post the changes in the dataset buffer to the underlying database, because the database engine reported an error. The event handler can be used to indicate what the response to the failed post operation should be. To this end, it gets the exception object passed to it (parameter E), and it can examine this object to return an appropriate action in the DataAction parameter. The following responses are supported:
For more information, see also the description of the TDatasetErrorEvent event handler type.
|
Error handling callback |
|
|
Post pending edits to the database. |
|
|
Event triggered when a delete operation fails. |
|
|
Event triggered when an edit operation fails. |