Class CKErrorCode


  • public final class CKErrorCode
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AlreadyShared
      A record/share cannot be saved, doing so would cause a hierarchy of records to exist in multiple shares
      static long AssetFileModified
      Asset file content was modified while being saved
      static long AssetFileNotFound
      Asset file was not found
      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
      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
      static long InternalError
      CloudKit.framework encountered an error.
      static long InvalidArguments
      Bad client request (bad record graph, malformed predicate)
      static long LimitExceeded
      The request to the server was too large.
      static long ManagedAccountRestricted
      Request was rejected due to a managed account restriction
      static long MissingEntitlement
      Missing entitlement
      static long NetworkFailure
      Network error (available but CFNetwork gave us an error)
      static long NetworkUnavailable
      Network not available
      static long NotAuthenticated
      Not authenticated (writing without being logged in, no user record)
      static long OperationCancelled
      A CKOperation was explicitly cancelled
      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)
      static long QuotaExceeded
      Saving a record would exceed quota
      static long ReferenceViolation
      The target of a record's parent or share reference was not found
      static long RequestRateLimited
      Client is being rate limited
      static long ResultsTruncated
      Bad client request (bad record graph, malformed predicate)
      static long ServerRecordChanged
      The record was rejected because the version on the server was different
      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
      static long TooManyParticipants
      A share cannot be saved because there are too many participants attached to the share
      static long UnknownItem
      Record does not exist
      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
    • 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.
        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.
        See Also:
        Constant Field Values
      • NetworkUnavailable

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

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

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

        public static final long ServiceUnavailable
        Service unavailable
        See Also:
        Constant Field Values
      • RequestRateLimited

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

        public static final long MissingEntitlement
        Missing entitlement
        See Also:
        Constant Field Values
      • NotAuthenticated

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

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

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

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

        public static final long ResultsTruncated
        Bad client request (bad record graph, malformed predicate)
        See Also:
        Constant Field Values
      • ServerRecordChanged

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

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

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

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

        public static final long IncompatibleVersion
        App version is less than the minimum allowed version
        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.
        See Also:
        Constant Field Values
      • OperationCancelled

        public static final long OperationCancelled
        A CKOperation was explicitly cancelled
        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
        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.
        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.
        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.
        See Also:
        Constant Field Values
      • QuotaExceeded

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

        public static final long ZoneNotFound
        The specified zone does not exist on the server
        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.
        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.
        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
        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
        See Also:
        Constant Field Values
      • ReferenceViolation

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

        public static final long ManagedAccountRestricted
        Request was rejected due to a managed account restriction
        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.
        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.
        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.
        See Also:
        Constant Field Values