<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSDataCacheError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:@E@FSDataCacheErrorCode"
  },
  "title" : "FSDataCacheError.Code"
}
-->

# FSDataCacheError.Code

Error codes specific to data cache operations.

```
enum Code
```

## Topics

### Error codes

[`case errorInvalidCacheModeCoherency`](/documentation/FSKit/FSDataCacheError/Code/errorInvalidCacheModeCoherency)

The requested cache mode and coherency type combination is invalid.

[`case errorInvalidCacheTransition`](/documentation/FSKit/FSDataCacheError/Code/errorInvalidCacheTransition)

The cache transition is not allowed.

[`case errorCacheFlushFailed`](/documentation/FSKit/FSDataCacheError/Code/errorCacheFlushFailed)

Failed to flush dirty cached data to storage.

[`case errorCacheInvalidationFailed`](/documentation/FSKit/FSDataCacheError/Code/errorCacheInvalidationFailed)

Failed to invalidate (clear) cached data.

[`case errorCacheOperationConflict`](/documentation/FSKit/FSDataCacheError/Code/errorCacheOperationConflict)

A conflicting cache operation is in progress.

### Initializers

[`init?(rawValue: Int)`](/documentation/FSKit/FSDataCacheError/Code/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

[`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)