<!--
{
  "availability" : [
    "iOS: 10.0.0 - 12.0.0",
    "iPadOS: 10.0.0 - 12.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.12.0 - 10.14.0",
    "tvOS: 10.0.0 - 12.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameSessionError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "s:SC22GKGameSessionErrorCodeLeV"
  },
  "title" : "GKGameSessionError"
}
-->

# GKGameSessionError

Error codes for the game session domain.

```
struct GKGameSessionError
```

## Topics

### Error Codes

[`badContainer`](/documentation/GameKit/GKGameSessionError/badContainer)

The requested operation could not be completed because the iCloud container is invalid.

[`cloudDriveDisabled`](/documentation/GameKit/GKGameSessionError/cloudDriveDisabled)

The requested operation could not be completed because iCloud Drive has been disabled for the application.

[`cloudQuotaExceeded`](/documentation/GameKit/GKGameSessionError/cloudQuotaExceeded)

The requested operation could not be completed because the user’s iCloud quota would be exceeded.

[`connectionCancelledByUser`](/documentation/GameKit/GKGameSessionError/connectionCancelledByUser)

The requested operation could not be completed because the connection to the session was cancelled.

[`connectionFailed`](/documentation/GameKit/GKGameSessionError/connectionFailed)

The requested operation could not be completed because the session could not find other players to connect to.

[`invalidSession`](/documentation/GameKit/GKGameSessionError/invalidSession)

The requested operation could not be completed because the Game Session does not exist or the player is not part of the game session.

[`networkFailure`](/documentation/GameKit/GKGameSessionError/networkFailure)

The requested operation could not be completed due to an error communicating with the server.

[`notAuthenticated`](/documentation/GameKit/GKGameSessionError/notAuthenticated)

The requested operation could not be completed because you are not signed in to iCloud.

[`sendDataNoRecipients`](/documentation/GameKit/GKGameSessionError/sendDataNoRecipients)

The requested operation could not be completed because there are no recipients connected to session.

[`sendDataNotConnected`](/documentation/GameKit/GKGameSessionError/sendDataNotConnected)

The requested operation could not be completed because you are not connected to the session.

[`sendDataNotReachable`](/documentation/GameKit/GKGameSessionError/sendDataNotReachable)

The requested operation could not be completed because one or more players is not reachable.

[`sendRateLimitReached`](/documentation/GameKit/GKGameSessionError/sendRateLimitReached)

The requested operation could not be completed because you have reached the limits for save data request.

[`sessionConflict`](/documentation/GameKit/GKGameSessionError/sessionConflict)

The requested operation could not be completed because the session has been updated on the server, causing a conflict.

[`sessionHasMaxConnectedPlayers`](/documentation/GameKit/GKGameSessionError/sessionHasMaxConnectedPlayers)

The requested operation could not be completed because the session has reached the maximum number of connected players.

[`sessionNotShared`](/documentation/GameKit/GKGameSessionError/sessionNotShared)

The requested operation could not be completed because this session has not been shared with other players.

[`unknown`](/documentation/GameKit/GKGameSessionError/unknown)

The requested operation could not be completed due to an unknown error.

[`GKGameSessionError.Code`](/documentation/GameKit/GKGameSessionError/Code)

Error codes for the game session domain.

### Error Domain

[`errorDomain`](/documentation/GameKit/GKGameSessionError/errorDomain)

[`GKGameSessionErrorDomain`](/documentation/GameKit/GKGameSessionErrorDomain)

The error domain for game sessions.



---

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)