---
title: FSDataCacheError.Code.errorInvalidCacheTransition
framework: fskit
role: symbol
role_heading: Case
path: fskit/fsdatacacheerror/code/errorinvalidcachetransition
---

# FSDataCacheError.Code.errorInvalidCacheTransition

The cache transition is not allowed.

## Declaration

```swift
case errorInvalidCacheTransition
```

## Discussion

Discussion This error occurs when attempting an invalid transition, such as using an upgrade method for a downgrade operation, or vice versa.

## See Also

### Error codes

- [FSDataCacheError.Code.errorInvalidCacheModeCoherency](fskit/fsdatacacheerror/code/errorinvalidcachemodecoherency.md)
- [FSDataCacheError.Code.errorCacheFlushFailed](fskit/fsdatacacheerror/code/errorcacheflushfailed.md)
- [FSDataCacheError.Code.errorCacheInvalidationFailed](fskit/fsdatacacheerror/code/errorcacheinvalidationfailed.md)
- [FSDataCacheError.Code.errorCacheOperationConflict](fskit/fsdatacacheerror/code/errorcacheoperationconflict.md)
