CloudKit - partialFailure and limitExceeded

Viewed 264

Summary

In CloudKit would like to know all the possible CKError.Code possible for a .partialFailure.

Presently I am only handling the following CKError.Code for a partialFailure.

Assumptions:

  1. .serverRecordChanged //Only applicable while saving records
  2. .zoneNotFound //Only applicable while fetching zones
  3. .unknownItem //Only applicable while fetching items
  4. .batchRequestFailed //Only applicable while saving records in custom zone

Questions:

  1. For partialFailure, are the above stated the only possible error codes ?

  2. Are the errors serverRecordChanged, zoneNotFound, unknownItem only possible as part of partialFailure error ? (Would the error returned by the completion handler not directly contain serverRecordChanged, zoneNotFound, unknownItem but only partialFailure error may contain them ?)

  3. Are my comments regarding when each of the above error correct ? (Only applicable while...)

  4. Is limitExceeded error thrown for CKFetch operations and CKModify operations or is it only applicable for CKModify operations ?

1 Answers
Related