Enumeration

GKError.Code

Error codes for the GameKit error domain.

Declaration

enum GKError.Code : Int, _ErrorCodeProtocol

Topics

Constants

case unknown

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

case cancelled

The requested operation has been cancelled or disabled by the user.

case communicationsFailure

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

case userDenied

The requested operation could not be completed because it was denied by the user.

case invalidCredentials

The requested operation could not be completed because the username and/or password are incorrect.

case notAuthenticated

The requested operation could not be completed because local player has not been authenticated.

case authenticationInProgress

The requested operation could not be completed because local player is already authenticating.

case invalidPlayer

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

case scoreNotSet

The requested operation could not be completed because the score value has not been set.

case parentalControlsBlocked

The requested operation could not be completed because this feature has been disabled in Restrictions.

case playerStatusExceedsMaximumLength

The player’s status message is too long.

case playerStatusInvalid

The player’s status message is invalid.

case matchRequestInvalid

The requested operation could not be completed because the match request is invalid.

case underage

The requested operation could not be completed because this feature is disabled for underage players.

case gameUnrecognized

The requested operation could not be completed because this application is not recognized by Game Center.

case notSupported

Game Center is not supported.

case invalidParameter

The requested operations could not be completed because one or more parameters are invalid.

case unexpectedConnection

An unexpected player has connected to a match.

case challengeInvalid

The challenge request failed due to invalid challenge data.

case turnBasedMatchDataTooLarge

The requested operation could not be completed because the match data was too large.

case turnBasedTooManySessions

The requested operation could not be completed because it would exceed the maximum number of sessions.

case turnBasedInvalidParticipant

The requested operation could not be completed because the specified participant is invalid.

case turnBasedInvalidTurn

The requested operation could not be completed because the specified participant does not have the required turn state.

case turnBasedInvalidState

The requested operation could not be completed because the session is in an invalid state.

case invitationsDisabled

The requested operation could not be completed because the receiving player has disabled invitations.

case playerPhotoFailure

The requested operation to retrieve a player’s photo can not be completed.

case ubiquityContainerUnavailable

The requested operation could not be completed because you are not signed in to iCloud or have not enabled iCloud Drive.

case matchNotConnected

The requested operation could not be completed because the match is not connected to other players.

See Also

Error Codes

static var authenticationInProgress: GKError.Code

The requested operation could not be completed because local player is already authenticating.

static var cancelled: GKError.Code

The requested operation has been canceled or disabled by the user.

static var challengeInvalid: GKError.Code

The challenge request failed due to invalid challenge data.

static var communicationsFailure: GKError.Code

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

static var gameUnrecognized: GKError.Code

The requested operation could not be completed because this application is not recognized by Game Center.

static var invalidCredentials: GKError.Code

The requested operation could not be completed because the username and/or password are incorrect.

static var invalidParameter: GKError.Code

The requested operations could not be completed because one or more parameters are invalid.

static var invalidPlayer: GKError.Code

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

static var invitationsDisabled: GKError.Code

The requested operation could not be completed because the receiving player has disabled invitations.

static var matchNotConnected: GKError.Code

The requested operation could not be completed because the match is not connected to other players.

static var matchRequestInvalid: GKError.Code

The requested operation could not be completed because the match request is invalid.

static var notAuthenticated: GKError.Code

The requested operation could not be completed because local player has not been authenticated.

static var notSupported: GKError.Code

Game Center is not supported.

static var parentalControlsBlocked: GKError.Code

The requested operation could not be completed because this feature has been disabled in Restrictions.

static var playerPhotoFailure: GKError.Code

The requested operation to retrieve a player’s photo can not be completed.

static var scoreNotSet: GKError.Code

The requested operation could not be completed because the score value has not been set.

static var turnBasedInvalidParticipant: GKError.Code

The requested operation could not be completed because the specified participant is invalid.

static var turnBasedInvalidState: GKError.Code

The requested operation could not be completed because the session is in an invalid state.

static var turnBasedInvalidTurn: GKError.Code

The requested operation could not be completed because the specified participant does not have the required turn state.

static var turnBasedMatchDataTooLarge: GKError.Code

The requested operation could not be completed because the match data was too large.

static var turnBasedTooManySessions: GKError.Code

The requested operation could not be completed because it would exceed the maximum number of sessions.

static var ubiquityContainerUnavailable: GKError.Code

The requested operation could not be completed because you are not signed in to iCloud or have not enabled iCloud Drive.

static var underage: GKError.Code

The requested operation could not be completed because this feature is disabled for underage players.

static var unexpectedConnection: GKError.Code

An unexpected player has connected to a match.

static var unknown: GKError.Code

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

static var userDenied: GKError.Code

The requested operation could not be completed because it was denied by the user.