Enumeration

GKErrorCode

Error codes for the GameKit error domain.

Declaration

typedef enum GKErrorCode : NSInteger {
    ...
} GKErrorCode;

Topics

Constants

GKErrorUnknown

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

GKErrorCancelled

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

GKErrorCommunicationsFailure

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

GKErrorUserDenied

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

GKErrorInvalidCredentials

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

GKErrorNotAuthenticated

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

GKErrorAuthenticationInProgress

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

GKErrorInvalidPlayer

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

GKErrorScoreNotSet

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

GKErrorParentalControlsBlocked

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

GKErrorPlayerStatusExceedsMaximumLength

The player’s status message is too long.

GKErrorPlayerStatusInvalid

The player’s status message is invalid.

GKErrorMatchRequestInvalid

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

GKErrorUnderage

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

GKErrorGameUnrecognized

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

GKErrorNotSupported

Game Center is not supported.

GKErrorInvalidParameter

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

GKErrorUnexpectedConnection

An unexpected player has connected to a match.

GKErrorChallengeInvalid

The challenge request failed due to invalid challenge data.

GKErrorTurnBasedMatchDataTooLarge

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

GKErrorTurnBasedTooManySessions

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

GKErrorTurnBasedInvalidParticipant

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

GKErrorTurnBasedInvalidTurn

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

GKErrorTurnBasedInvalidState

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

GKErrorOffline

The requested operation could not be completed because the device is not online.

GKErrorInvitationsDisabled

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

GKErrorPlayerPhotoFailure

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

GKErrorUbiquityContainerUnavailable

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

GKErrorMatchNotConnected

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

See Also

Errors

GKErrorDomain

The error domain for general game errors.