RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomResolver.HandleUpdateError Method

Manages the resolving process when errors occur while applying updates.

Pascal
function HandleUpdateError(Tree: TUpdateTree; E: EUpdateError; var MaxErrors: Integer; var ErrorCount: Integer): Boolean; virtual;
C++
virtual __fastcall Boolean HandleUpdateError(TUpdateTree Tree, EUpdateError E, int MaxErrors, int ErrorCount);

When a resolver encounters errors in applying updates, it calls HandleUpdateError to determine how to proceed. HandleUpdateError generates an OnUpdateError event on the associated provider so that applications have an opportunity to correct update errors. Depending on the response provided by the OnUpdateError handler (if any), HandleUpdateError logs the unresolved error or signals that the resolver should try to apply the (corrected) record again. 

The Tree parameter specifies the TUpdateTree that wraps all the updates currently being applied. The MaxErrors parameter indicates the maximum number of errors that the resolver will tolerate before the update operation is rolled back. The ErrorCount parameter specifies how many errors have been encountered so far. 

HandleUpdateError returns true if the record has been corrected and the resolver should try to reapply the update. It returns false if the record is added to the error log. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!