CloudKit - partialFailure and limitExceeded

Summary

In CloudKitwould like to know everything possible CKError.Codefor .partialFailure.

Currently, I only process CKError.Codefor partial failure.

Assumptions:

  • .serverRecordChanged// Applies only when saving records
  • .zoneNotFound// applicable only when selecting zones
  • .unknownItem// Applies only when retrieving elements
  • .batchRequestFailed// Applies only when saving records in the user zone

Questions:

  • In the case partialFailure, as indicated above, the only possible error codes?

  • Are error serverRecordChanged, zoneNotFound, unknownItemis only possible as part of the error partialFailure? (Would be a mistake, the returned completion handler, does not directly contain serverRecordChanged, zoneNotFound, unknownItembut only partialFailureerror can keep them?)

  • My comments are regarding when each of the above errors is correct? (Applicable only when ...)

  • Error limitExceededfor operations CKFetchand CKModifyor is it only applicable for operations CKModify?

+4
1
+1

Source: https://habr.com/ru/post/1680915/


All Articles