/Demo/System_Frameworks_iOS11/FileProvider.framework/Headers/NSFileProviderError.h

https://github.com/LennonChin/Code-Confuse-Plugin · C Header · 35 lines · 20 code · 7 blank · 8 comment · 0 complexity · 657643e7dd86efb55f635b7334d3c2b5 MD5 · raw file

  1. //
  2. // NSFileProviderError.h
  3. // FileProvider
  4. //
  5. // Copyright (c) 2014-2017 Apple Inc. All rights reserved.
  6. //
  7. #import <FileProvider/NSFileProviderDefines.h>
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. FOUNDATION_EXPORT NSErrorDomain const NSFileProviderErrorDomain API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos);
  11. FOUNDATION_EXPORT NSString * const NSFileProviderErrorCollidingItemKey API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos);
  12. FOUNDATION_EXPORT NSString * const NSFileProviderErrorNonExistentItemIdentifierKey API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos);
  13. typedef NS_ERROR_ENUM(NSFileProviderErrorDomain, NSFileProviderErrorCode) {
  14. NSFileProviderErrorNotAuthenticated = -1000, /**< The user credentials cannot be verified */
  15. NSFileProviderErrorFilenameCollision = -1001, /**< An item already exists with the same parentItemIdentifier and filename (or with a filename differing only in case.)
  16. Please use -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:] to build an error with this code. */
  17. NSFileProviderErrorSyncAnchorExpired = -1002, /**< The value of the sync anchor is too old, and the system must re-sync from scratch */
  18. NSFileProviderErrorPageExpired = NSFileProviderErrorSyncAnchorExpired, /**< The value of the page token is too old, and the system must re-sync from scratch */
  19. NSFileProviderErrorInsufficientQuota = -1003, /**< The item has not been uploaded because it would push the account over quota */
  20. NSFileProviderErrorServerUnreachable = -1004, /**< Connecting to the servers failed */
  21. NSFileProviderErrorNoSuchItem = -1005 /**< The requested item doesn't exist
  22. Please use -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:] to build an error with this code. */
  23. } API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos);
  24. @interface NSError (NSFileProviderError)
  25. + (instancetype)fileProviderErrorForCollisionWithItem:(NSFileProviderItem)existingItem API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos);
  26. + (instancetype)fileProviderErrorForNonExistentItemWithIdentifier:(NSFileProviderItemIdentifier)itemIdentifier API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(macos, watchos, tvos);
  27. @end
  28. NS_ASSUME_NONNULL_END