---
title: GKError.Code.turnBasedInvalidState
framework: gamekit
role: symbol
role_heading: Case
path: gamekit/gkerror/code/turnbasedinvalidstate
---

# GKError.Code.turnBasedInvalidState

The system can’t complete the requested operation because the session is in an invalid state.

## Declaration

```swift
case turnBasedInvalidState
```

## See Also

### Turn-Based Game Errors

- [GKError.Code.turnBasedMatchDataTooLarge](gamekit/gkerror/code/turnbasedmatchdatatoolarge.md)
- [GKError.Code.turnBasedTooManySessions](gamekit/gkerror/code/turnbasedtoomanysessions.md)
- [GKError.Code.turnBasedInvalidParticipant](gamekit/gkerror/code/turnbasedinvalidparticipant.md)
- [GKError.Code.turnBasedInvalidTurn](gamekit/gkerror/code/turnbasedinvalidturn.md)
