Class CKErrorCode


  • public final class CKErrorCode
    extends java.lang.Object
    API-Since: 8.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AccountTemporarilyUnavailable
      The current account is in a state that may need user intervention to recover from.
      static long AlreadyShared
      A record/share cannot be saved, doing so would cause a hierarchy of records to exist in multiple shares API-Since: 10.0
      static long AssetFileModified
      Asset file content was modified while being saved API-Since: 8.0
      static long AssetFileNotFound
      Asset file was not found API-Since: 8.0
      static long AssetNotAvailable
      The file for this asset could not be accessed.
      static long BadContainer
      Un-provisioned or unauthorized container.
      static long BadDatabase
      Operation could not be completed on the given database.
      static long BatchRequestFailed
      One of the items in this batch operation failed in a zone with atomic updates, so the entire batch was rejected.
      static long ChangeTokenExpired
      The previousServerChangeToken value is too old and the client must re-sync from scratch API-Since: 8.0
      static long ConstraintViolation
      The server rejected the request because there was a conflict with a unique field.
      static long IncompatibleVersion
      App version is less than the minimum allowed version API-Since: 8.0
      static long InternalError
      CloudKit.framework encountered an error.
      static long InvalidArguments
      Bad client request (bad record graph, malformed predicate) API-Since: 8.0
      static long LimitExceeded
      The request to the server was too large.
      static long ManagedAccountRestricted
      Request was rejected due to a managed account restriction API-Since: 10.0
      static long MissingEntitlement
      Missing entitlement API-Since: 8.0
      static long NetworkFailure
      Network error (available but CFNetwork gave us an error) API-Since: 8.0
      static long NetworkUnavailable
      Network not available API-Since: 8.0
      static long NotAuthenticated
      Not authenticated (writing without being logged in, no user record) API-Since: 8.0
      static long OperationCancelled
      A CKOperation was explicitly cancelled API-Since: 8.0
      static long PartialFailure
      Some items failed, but the operation succeeded overall.
      static long ParticipantMayNeedVerification
      Share Metadata cannot be determined, because the user is not a member of the share.
      static long PermissionFailure
      Access failure (save, fetch, or shareAccept) API-Since: 8.0
      static long QuotaExceeded
      Saving a record would exceed quota API-Since: 8.0
      static long ReferenceViolation
      The target of a record's parent or share reference was not found API-Since: 10.0
      static long RequestRateLimited
      Client is being rate limited API-Since: 8.0
      static long ResultsTruncated
      Deprecated.
      static long ServerRecordChanged
      The record was rejected because the version on the server was different API-Since: 8.0
      static long ServerRejectedRequest
      The server rejected this request.
      static long ServerResponseLost
      The server received and processed this request, but the response was lost due to a network failure.
      static long ServiceUnavailable
      Service unavailable API-Since: 8.0
      static long TooManyParticipants
      A share cannot be saved because there are too many participants attached to the share API-Since: 10.0
      static long UnknownItem
      Record does not exist API-Since: 8.0
      static long UserDeletedZone
      The user deleted this zone through the settings UI.
      static long ZoneBusy
      The server is too busy to handle this zone operation.
      static long ZoneNotFound
      The specified zone does not exist on the server API-Since: 8.0
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • InternalError

        public static final long InternalError
        CloudKit.framework encountered an error. This is a non-recoverable error. API-Since: 8.0
        See Also:
        Constant Field Values
      • PartialFailure

        public static final long PartialFailure
        Some items failed, but the operation succeeded overall. Check CKPartialErrorsByItemIDKey in the userInfo dictionary for more details. This error is only returned from CKOperation completion blocks, which are deprecated in swift. It will not be returned from (swift-only) CKOperation result blocks, which are their replacements API-Since: 8.0
        See Also:
        Constant Field Values
      • NetworkUnavailable

        public static final long NetworkUnavailable
        Network not available API-Since: 8.0
        See Also:
        Constant Field Values
      • NetworkFailure

        public static final long NetworkFailure
        Network error (available but CFNetwork gave us an error) API-Since: 8.0
        See Also:
        Constant Field Values
      • BadContainer

        public static final long BadContainer
        Un-provisioned or unauthorized container. Try provisioning the container before retrying the operation. API-Since: 8.0
        See Also:
        Constant Field Values
      • ServiceUnavailable

        public static final long ServiceUnavailable
        Service unavailable API-Since: 8.0
        See Also:
        Constant Field Values
      • RequestRateLimited

        public static final long RequestRateLimited
        Client is being rate limited API-Since: 8.0
        See Also:
        Constant Field Values
      • MissingEntitlement

        public static final long MissingEntitlement
        Missing entitlement API-Since: 8.0
        See Also:
        Constant Field Values
      • NotAuthenticated

        public static final long NotAuthenticated
        Not authenticated (writing without being logged in, no user record) API-Since: 8.0
        See Also:
        Constant Field Values
      • PermissionFailure

        public static final long PermissionFailure
        Access failure (save, fetch, or shareAccept) API-Since: 8.0
        See Also:
        Constant Field Values
      • UnknownItem

        public static final long UnknownItem
        Record does not exist API-Since: 8.0
        See Also:
        Constant Field Values
      • InvalidArguments

        public static final long InvalidArguments
        Bad client request (bad record graph, malformed predicate) API-Since: 8.0
        See Also:
        Constant Field Values
      • ResultsTruncated

        @Deprecated
        public static final long ResultsTruncated
        Deprecated.
        Bad client request (bad record graph, malformed predicate) API-Since: 8.0 Deprecated-Since: 10.0 Deprecated-Message: Will not be returned
        See Also:
        Constant Field Values
      • ServerRecordChanged

        public static final long ServerRecordChanged
        The record was rejected because the version on the server was different API-Since: 8.0
        See Also:
        Constant Field Values
      • ServerRejectedRequest

        public static final long ServerRejectedRequest
        The server rejected this request. This is a non-recoverable error API-Since: 8.0
        See Also:
        Constant Field Values
      • AssetFileNotFound

        public static final long AssetFileNotFound
        Asset file was not found API-Since: 8.0
        See Also:
        Constant Field Values
      • AssetFileModified

        public static final long AssetFileModified
        Asset file content was modified while being saved API-Since: 8.0
        See Also:
        Constant Field Values
      • IncompatibleVersion

        public static final long IncompatibleVersion
        App version is less than the minimum allowed version API-Since: 8.0
        See Also:
        Constant Field Values
      • ConstraintViolation

        public static final long ConstraintViolation
        The server rejected the request because there was a conflict with a unique field. API-Since: 8.0
        See Also:
        Constant Field Values
      • OperationCancelled

        public static final long OperationCancelled
        A CKOperation was explicitly cancelled API-Since: 8.0
        See Also:
        Constant Field Values
      • ChangeTokenExpired

        public static final long ChangeTokenExpired
        The previousServerChangeToken value is too old and the client must re-sync from scratch API-Since: 8.0
        See Also:
        Constant Field Values
      • BatchRequestFailed

        public static final long BatchRequestFailed
        One of the items in this batch operation failed in a zone with atomic updates, so the entire batch was rejected. API-Since: 8.0
        See Also:
        Constant Field Values
      • ZoneBusy

        public static final long ZoneBusy
        The server is too busy to handle this zone operation. Try the operation again in a few seconds. API-Since: 8.0
        See Also:
        Constant Field Values
      • BadDatabase

        public static final long BadDatabase
        Operation could not be completed on the given database. Likely caused by attempting to modify zones in the public database. API-Since: 8.0
        See Also:
        Constant Field Values
      • QuotaExceeded

        public static final long QuotaExceeded
        Saving a record would exceed quota API-Since: 8.0
        See Also:
        Constant Field Values
      • ZoneNotFound

        public static final long ZoneNotFound
        The specified zone does not exist on the server API-Since: 8.0
        See Also:
        Constant Field Values
      • LimitExceeded

        public static final long LimitExceeded
        The request to the server was too large. Retry this request as a smaller batch. API-Since: 8.0
        See Also:
        Constant Field Values
      • UserDeletedZone

        public static final long UserDeletedZone
        The user deleted this zone through the settings UI. Your client should either remove its local data or prompt the user before attempting to re-upload any data to this zone. API-Since: 8.0
        See Also:
        Constant Field Values
      • TooManyParticipants

        public static final long TooManyParticipants
        A share cannot be saved because there are too many participants attached to the share API-Since: 10.0
        See Also:
        Constant Field Values
      • AlreadyShared

        public static final long AlreadyShared
        A record/share cannot be saved, doing so would cause a hierarchy of records to exist in multiple shares API-Since: 10.0
        See Also:
        Constant Field Values
      • ReferenceViolation

        public static final long ReferenceViolation
        The target of a record's parent or share reference was not found API-Since: 10.0
        See Also:
        Constant Field Values
      • ManagedAccountRestricted

        public static final long ManagedAccountRestricted
        Request was rejected due to a managed account restriction API-Since: 10.0
        See Also:
        Constant Field Values
      • ParticipantMayNeedVerification

        public static final long ParticipantMayNeedVerification
        Share Metadata cannot be determined, because the user is not a member of the share. There are invited participants on the share with email addresses or phone numbers not associated with any iCloud account. The user may be able to join the share if they can associate one of those email addresses or phone numbers with their iCloud account via the system Share Accept UI. Call UIApplication's openURL on this share URL to have the user attempt to verify their information. API-Since: 10.0
        See Also:
        Constant Field Values
      • ServerResponseLost

        public static final long ServerResponseLost
        The server received and processed this request, but the response was lost due to a network failure. There is no guarantee that this request succeeded. Your client should re-issue the request (if it is idempotent), or fetch data from the server to determine if the request succeeded. API-Since: 11.0
        See Also:
        Constant Field Values
      • AssetNotAvailable

        public static final long AssetNotAvailable
        The file for this asset could not be accessed. It is likely your application does not have permission to open the file, or the file may be temporarily unavailable due to its data protection class. This operation can be retried after it is able to be opened in your process. API-Since: 11.3
        See Also:
        Constant Field Values
      • AccountTemporarilyUnavailable

        public static final long AccountTemporarilyUnavailable
        The current account is in a state that may need user intervention to recover from. The user should be directed to check the Settings app. Listen for CKAccountChangedNotifications to know when to re-check account status and retry. API-Since: 15.0
        See Also:
        Constant Field Values