<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "s:SC11FSErrorCodeLeV"
  },
  "title" : "FSError"
}
-->

# FSError

An error encountered when performing an FSKit operation.

```
struct FSError
```

## Topics

### Identifying errors

[`static var invalidDirectoryCookie: FSError.Code`](/documentation/FSKit/FSError/invalidDirectoryCookie)

[`static var moduleLoadFailed: FSError.Code`](/documentation/FSKit/FSError/moduleLoadFailed)

[`static var resourceDamaged: FSError.Code`](/documentation/FSKit/FSError/resourceDamaged)

[`static var resourceUnrecognized: FSError.Code`](/documentation/FSKit/FSError/resourceUnrecognized)

[`static var resourceUnusable: FSError.Code`](/documentation/FSKit/FSError/resourceUnusable)

[`static var statusOperationInProgress: FSError.Code`](/documentation/FSKit/FSError/statusOperationInProgress)

[`static var statusOperationPaused: FSError.Code`](/documentation/FSKit/FSError/statusOperationPaused)

### Identifying the error domain

[`static var errorDomain: String`](/documentation/FSKit/FSError/errorDomain)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)