Class NSFileProviderErrorCode


  • public final class NSFileProviderErrorCode
    extends java.lang.Object
    API-Since: 11.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long CannotSynchronize
      Indicates that synchronization cannot happen.
      static long DeletionRejected
      The provider disallowed the deletion of the item.
      static long DirectoryNotEmpty
      We're trying to non-recursively delete a non-empty directory API-Since: 16.0
      static long DomainDisabled
      Returned by the system to indicate that the domain is disabled by the user, and therefore the operation cannot be completed.
      static long ExcludedFromSync
      Returned by createItemBasedOnTemplate or modifyItem if the provider does not wish to sync the item.
      static long FilenameCollision
      An item already exists with the same parentItemIdentifier and filename (or with a filename differing only in case.) \note Please use -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:] to build an error with this code.
      static long InsufficientQuota
      The item has not been uploaded because it would push the account over quota API-Since: 11.0
      static long NonEvictable
      Returned by NSFileProviderManager if item eviction is failing because the item has not been assigned the evictable capability.
      static long NonEvictableChildren
      Returned by NSFileProviderManager if directory eviction failed because the target contains non-evictable items.
      static long NoSuchItem
      The requested item doesn't exist \note Please use -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:] to build an error with this code.
      static long NotAuthenticated
      The user credentials cannot be verified API-Since: 11.0
      static long PageExpired
      The value of the page token is too old, and the system must re-sync from scratch API-Since: 11.0
      static long ProviderNotFound
      Returned by NSFileProviderManager if no provider could be found in the application API-Since: 16.0
      static long ServerUnreachable
      Connecting to the servers failed API-Since: 11.0
      static long SyncAnchorExpired
      The value of the sync anchor is too old, and the system must re-sync from scratch API-Since: 11.0
      static long UnsyncedEdits
      Returned by NSFileProviderManager if item eviction is failing because the item has edits that have not been synced yet The NSURLErrorKey will be set to with the item URL that has unsynced content.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • NotAuthenticated

        public static final long NotAuthenticated
        The user credentials cannot be verified API-Since: 11.0
        See Also:
        Constant Field Values
      • FilenameCollision

        public static final long FilenameCollision
        An item already exists with the same parentItemIdentifier and filename (or with a filename differing only in case.) \note Please use -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:] to build an error with this code. \see -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:] API-Since: 11.0
        See Also:
        Constant Field Values
      • SyncAnchorExpired

        public static final long SyncAnchorExpired
        The value of the sync anchor is too old, and the system must re-sync from scratch API-Since: 11.0
        See Also:
        Constant Field Values
      • PageExpired

        public static final long PageExpired
        The value of the page token is too old, and the system must re-sync from scratch API-Since: 11.0
        See Also:
        Constant Field Values
      • InsufficientQuota

        public static final long InsufficientQuota
        The item has not been uploaded because it would push the account over quota API-Since: 11.0
        See Also:
        Constant Field Values
      • ServerUnreachable

        public static final long ServerUnreachable
        Connecting to the servers failed API-Since: 11.0
        See Also:
        Constant Field Values
      • NoSuchItem

        public static final long NoSuchItem
        The requested item doesn't exist \note Please use -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:] to build an error with this code. \see -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:] API-Since: 11.0
        See Also:
        Constant Field Values
      • NonEvictableChildren

        public static final long NonEvictableChildren
        Returned by NSFileProviderManager if directory eviction failed because the target contains non-evictable items. -[NSError underlyingErrors] is set to an array of the underlying errors. Each one has NSURLErrorKey set to identify the particular file or directory affected by this error. The number of reported failing items is capped to an implementation-defined number. + domain: NSFileProviderErrorDomain errorCode: NSFileProviderErrorUnsyncedEdits error: if the item had unsynced content. + domain: NSFileProviderErrorDomain errorCode: NSFileProviderErrorNonEvictable error: if the item has been marked as non-purgeable by the provider. + domain: NSPOSIXErrorDomain errorCode: EBUSY - if the item had open file descriptors on it. + domain: NSPOSIXErrorDomain errorCode: EMLINK : if the item had several hardlinks. API-Since: 16.0
        See Also:
        Constant Field Values
      • UnsyncedEdits

        public static final long UnsyncedEdits
        Returned by NSFileProviderManager if item eviction is failing because the item has edits that have not been synced yet The NSURLErrorKey will be set to with the item URL that has unsynced content. API-Since: 16.0
        See Also:
        Constant Field Values
      • NonEvictable

        public static final long NonEvictable
        Returned by NSFileProviderManager if item eviction is failing because the item has not been assigned the evictable capability. The NSURLErrorKey will be set to with the corresponding item URL. API-Since: 16.0
        See Also:
        Constant Field Values
      • DeletionRejected

        public static final long DeletionRejected
        The provider disallowed the deletion of the item. \note Please use -[NSError (NSFileProviderError) fileProviderErrorForRejectedDeletionOfItem:] to build an error with this code. \see -[NSError (NSFileProviderError) fileProviderErrorForRejectedDeletionOfItem:] API-Since: 16.0
        See Also:
        Constant Field Values
      • DirectoryNotEmpty

        public static final long DirectoryNotEmpty
        We're trying to non-recursively delete a non-empty directory API-Since: 16.0
        See Also:
        Constant Field Values
      • ProviderNotFound

        public static final long ProviderNotFound
        Returned by NSFileProviderManager if no provider could be found in the application API-Since: 16.0
        See Also:
        Constant Field Values
      • CannotSynchronize

        public static final long CannotSynchronize
        Indicates that synchronization cannot happen. This error can be returned by the provider or the system. This is returned by NSFileProviderManager if a barrier failed for a sync-related error. If the failure is caused by a specific item, the system will set the NSFileProviderErrorItemKey to the corresponding item identifier and the NSUnderlyingErrorKey will be set to the error encountered by that item. When a provider returns this error on createItem or updateItem, it means that syncing that item is definitively broken. The system will not retry syncing those items, until either: * The operating system has been updated. * The FileProvider extension has been updated. * The item is modified on disk. API-Since: 16.0
        See Also:
        Constant Field Values
      • ExcludedFromSync

        public static final long ExcludedFromSync
        Returned by createItemBasedOnTemplate or modifyItem if the provider does not wish to sync the item. When a provider returns this error, it causes the item to be excluded from sync. The system will ensure that the item (and any descendents, in case of a directory), are downloaded, and then issue a deleteItem call to the provider for the item. The system will call createItemBasedOnTemplate for the item, whenever the item's metadata changes on disk. This ensures that the provider's rules for excluding from sync are re-evaluated whenever the item's properties change. Re-evaluating items ------ If the provider wishes for previously excluded items to be re-sent as createItemBasedOnTemplate calls, the provider may call -[NSFileProviderManager signalErrorResolved:completionHandler:] with this error code. If the provider wishes to exclude items which had previously been synced, the provider may call -[NSFileProviderManager requestModificationOfFields:forItemWithIdentifier:options:completionHandler:]. This will cause the system to send a new modifyItem call to the provider. At that time, the provider can choose to return this error code. API-Since: 16.0
        See Also:
        Constant Field Values
      • DomainDisabled

        public static final long DomainDisabled
        Returned by the system to indicate that the domain is disabled by the user, and therefore the operation cannot be completed. API-Since: 16.0
        See Also:
        Constant Field Values