<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "s:SC23NSFileProviderErrorCodeLeV"
  },
  "title" : "NSFileProviderError"
}
-->

# NSFileProviderError

A structure that contains information about File Provider extension errors.

```
struct NSFileProviderError
```

## Topics

### Getting error properties

### Accessing error codes

[`Code`](/documentation/FileProvider/NSFileProviderError/Code)

The error codes for the File Provider extension.

[`filenameCollision`](/documentation/FileProvider/NSFileProviderError/filenameCollision)

An error indicating that an item with the same name already exists in the same directory.

[`insufficientQuota`](/documentation/FileProvider/NSFileProviderError/insufficientQuota)

An error indicating that the File Provider extension can’t upload the item because it would push the account over its quota.

[`noSuchItem`](/documentation/FileProvider/NSFileProviderError/noSuchItem)

An error indicating that the specified item doesn’t exist.

[`notAuthenticated`](/documentation/FileProvider/NSFileProviderError/notAuthenticated)

An error indicating that you can’t verify the user’s credentials.

[`pageExpired`](/documentation/FileProvider/NSFileProviderError/pageExpired)

An error indicating that the page is too old, and that the system must restart the enumeration operation from the beginning.

[`serverUnreachable`](/documentation/FileProvider/NSFileProviderError/serverUnreachable)

An error indicating that the File Provider extension can’t reach the remote server.

[`syncAnchorExpired`](/documentation/FileProvider/NSFileProviderError/syncAnchorExpired)

An error indicating that the sync anchor is too old, and that the system must restart the sync operation from the beginning.

[`directoryNotEmpty`](/documentation/FileProvider/NSFileProviderError/directoryNotEmpty)

An error indicating an attempt to nonrecursively delete a directory that isn’t empty.

[`providerNotFound`](/documentation/FileProvider/NSFileProviderError/providerNotFound)

An error indicating that the File Provider manager can’t find the specified provider.

[`providerTranslocated`](/documentation/FileProvider/NSFileProviderError/providerTranslocated)

An error indicating the File Provider extension is in a disabled state due to Gatekeeper’s restrictions for apps from outside the App Store.

[`olderExtensionVersionRunning`](/documentation/FileProvider/NSFileProviderError/olderExtensionVersionRunning)

An error indicating that the registered provider in the system is an older version than the one the app uses.

[`newerExtensionVersionFound`](/documentation/FileProvider/NSFileProviderError/newerExtensionVersionFound)

An error indicating that the registered provider in the system is a newer version than the one the app uses.

[`nonEvictable`](/documentation/FileProvider/NSFileProviderError/nonEvictable)

An error indicating that the File Provider extension can’t evict an item.

[`nonEvictableChildren`](/documentation/FileProvider/NSFileProviderError/nonEvictableChildren)

An error indicating that the File Provider extension can’t evict a directory because it contains nonevictable items.

[`unsyncedEdits`](/documentation/FileProvider/NSFileProviderError/unsyncedEdits)

An error indicating that the item contains unsynced changes.

[`cannotSynchronize`](/documentation/FileProvider/NSFileProviderError/cannotSynchronize)

An error indicating a failed sync attempt.

[`deletionRejected`](/documentation/FileProvider/NSFileProviderError/deletionRejected)

An error indicating a failed deletion action.

[`versionNoLongerAvailable`](/documentation/FileProvider/NSFileProviderError/versionNoLongerAvailable)

An error that indicates whether the specified version is no longer available.

[`domainDisabled`](/documentation/FileProvider/NSFileProviderError/domainDisabled)

[`excludedFromSync`](/documentation/FileProvider/NSFileProviderError/excludedFromSync)

[`applicationExtensionNotFound`](/documentation/FileProvider/NSFileProviderError/applicationExtensionNotFound)

An error indicating that there isn’t an app extension within the app bundle.

[`providerDomainNotFound`](/documentation/FileProvider/NSFileProviderError/providerDomainNotFound)

An error indicating that there isn’t a registered domain for the corresponding identifier.

[`providerDomainTemporarilyUnavailable`](/documentation/FileProvider/NSFileProviderError/providerDomainTemporarilyUnavailable)

An error indicating that the system is unable to service requests for the domain temporarily, and you can try again later.

### Comparing error codes

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Error`](/documentation/Swift/Error)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)