編輯

共用方式為


CKErrorCode Enum

Definition

Enumerates CloudKit error conditions.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public enum CKErrorCode
type CKErrorCode = 
Inheritance
CKErrorCode
Attributes

Fields

Name Value Description
None 0

The operation succeeded.

InternalError 1

A CloudKit internal error. Non-recoverable.

PartialFailure 2

Indicates that some items failed but the overall operation succeeded.

NetworkUnavailable 3

Indicates that the user is not online.

NetworkFailure 4

The network returned an error during processing.

BadContainer 5

The specified container is unknown or unauthorized.

ServiceUnavailable 6

CloudKit is not available.

RequestRateLimited 7

Indicates that the client is currently rate-limited.

MissingEntitlement 8

The app is missing the required entitlement.

NotAuthenticated 9

The user is not currently authenticated. Common cause: User is not logged in to iCloud.

PermissionFailure 10

Indicates the user has not allowed access for the data in the fetch or save.

UnknownItem 11

Indicates the requested record does not exist.

InvalidArguments 12

Indicates an error in the form or content of the request.

ResultsTruncated 13

This error message is deprecated. Indicates that results were truncated by the server.

ServerRecordChanged 14

The record was rejected because the server's values were different.

ServerRejectedRequest 15

Server rejected request. Non-recoverable.

AssetFileNotFound 16

The specified asset file could not be found.

AssetFileModified 17

The specified asset file was modified during the save operation.

IncompatibleVersion 18

The app version is less than the CloudKit-specified minimum acceptable version.

ConstraintViolation 19

The request was rejected because of a conflict in a unique field.

OperationCancelled 20

Indicates the operation was cancelled programmatically by the app.

ChangeTokenExpired 21

Indicates the PreviousServerChangeToken expired and the client must resynchronize.

BatchRequestFailed 22

An item failed in a zone with atomic updates, so the batch was rejected.

ZoneBusy 23

Indicates that the zone is currently too busy. Suggested action is a delayed retry.

BadDatabase 24

The operation could not be completed. Common cause: attempt to modify zones on public database.

QuotaExceeded 25

Indicates that the requested operation would have exceeded the user's storage quota.

ZoneNotFound 26

The specified zone is not recognized by the server.

LimitExceeded 27

Indicates the request was too large. Suggested change: Refactor request into smaller batches.

UserDeletedZone 28

Indicates the user deleted the zone. Suggested action: Remove local copy of zone data or ask user if app may upload data again.

TooManyParticipants 29

Indicates that there are too many participants attached to the share.

AlreadyShared 30

Indicates that the CKRecord or CKShare hierarchy already exists in another share.

ReferenceViolation 31

Indicates the CKRecord object's parent reference or it's share reference could not be found.

ManagedAccountRestricted 32

Indicates an error due to a managed account restriction.

ParticipantMayNeedVerification 33

The user is not yet partificipating in the share..

ResponseLost 34

Indicates that the response was lost.

AssetNotAvailable 35

Applies to