<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSFeatureUnsupportedError-swift.var",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So25NSFeatureUnsupportedErrorSivp"
  },
  "title" : "NSFeatureUnsupportedError"
}
-->

# NSFeatureUnsupportedError

The feature isn’t supported, because the file system lacks the feature, or required libraries are missing, or other similar reasons.

```
var NSFeatureUnsupportedError: Int { get }
```

## Discussion

For example, some volumes may not support a Trash folder, so these methods will report failure by returning <doc://com.apple.documentation/documentation/Swift/false> or `nil` and an [`NSError`](/documentation/Foundation/NSError) with [`NSFeatureUnsupportedError`](/documentation/Foundation/NSFeatureUnsupportedError-swift.var).

---

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)