ILoadChangeContext::SetRecoverableErrorOnChangeUnit
Indicates that a recoverable error occurred when data for the specified change unit was loaded from the item store.
Syntax
HRESULT SetRecoverableErrorOnChangeUnit(
HRESULT hrError,
ISyncChangeUnit * pChangeUnit,
IRecoverableErrorData * pErrorData);
Parameters
hrError
[in] The error code that is associated with the error that prevented the change unit data from being loaded.pChangeUnit
[in] The change unit change that caused the error.pErrorData
[in, unique] Additional information about the error.
Return Value
S_OK
E_INVALIDARG when hrError does not specify an error.
E_POINTER
SYNC_E_ON_CREATE_MUST_FAIL_ENTIRE_ITEM when the change that contains this change unit refers to an item creation. In this case, the error must be reported on the item change by using ILoadChangeContext::SetRecoverableErrorOnChange.
SYNC_E_INTERNAL_ERROR when an internal error occurs.
Remarks
When this method is called, an IChangeUnitException object is added to the learned knowledge; and the change unit change will not be enumerated again for the duration of the synchronization session.