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

# FSDataCacheError

An error encountered when performing an FSKit data caching operation.

```
struct FSDataCacheError
```

## Topics

### Error codes

[`enum Code`](/documentation/FSKit/FSDataCacheError/Code)

Error codes specific to data cache operations.

[`static var errorInvalidCacheModeCoherency: FSDataCacheError.Code`](/documentation/FSKit/FSDataCacheError/errorInvalidCacheModeCoherency)

The requested cache mode and coherency type combination is invalid.

[`static var errorInvalidCacheTransition: FSDataCacheError.Code`](/documentation/FSKit/FSDataCacheError/errorInvalidCacheTransition)

The cache transition is not allowed.

[`static var errorCacheFlushFailed: FSDataCacheError.Code`](/documentation/FSKit/FSDataCacheError/errorCacheFlushFailed)

Failed to flush dirty cached data to storage.

[`static var errorCacheInvalidationFailed: FSDataCacheError.Code`](/documentation/FSKit/FSDataCacheError/errorCacheInvalidationFailed)

Failed to invalidate (clear) cached data.

[`static var errorCacheOperationConflict: FSDataCacheError.Code`](/documentation/FSKit/FSDataCacheError/errorCacheOperationConflict)

A conflicting cache operation is in progress.

### Identifying the error domain

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

The domain of the data cache error.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)