IRdsBatchCallback.OnError

Syntax

OnError(Element: Integer; ErrorType: Integer; Error: IException): RdsBatchCallbackContinue;

Parameters

Element. Key of element that has caused an error.

ErrorType. Error type.

Error. Description of exception.

Description

The OnError method implements an event that occurs if error occurs during batch execution.

The ErrorType parameter returns error type that is specific for each type of batches. For example, the RdsBatchDeleteError enumeration passes error type for the batch that is used to remove elements.

Comments

OnError should return value that determines the next action. It is set by element of the RdsBatchCallbackContinue enumeration.

Example

The method use is given in the example for IRdsDictionaryBatch.Callback.

See also:

IRdsBatchCallback