IRdsBatchCallback.OnError

Fore Syntax

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

Fore.NET Syntax

OnError(

Element: UInteger;

ErrorType: Integer;

Error: Prognoz.Platform.Interop.ForeSystem.Exception): Prognoz.Platform.Interop.Rds.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.

Fore Example

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

See also:

IRdsBatchCallback