GamesClientStatusCodes

public final class GamesClientStatusCodes extends CommonStatusCodes

Status codes for Games Clients methods result Task failures.

Constant Summary

int ACHIEVEMENT_NOT_INCREMENTAL Indicates that the call to increment achievement failed since the achievement is not an incremental achievement.
int ACHIEVEMENT_UNKNOWN Could not find the achievement, so the operation to update the achievement failed.
int ACHIEVEMENT_UNLOCKED Indicates that the incremental achievement was also unlocked when the call was made to increment the achievement.
int ACHIEVEMENT_UNLOCK_FAILURE An incremental achievement cannot be unlocked directly, so the call to unlock achievement failed.
int APP_MISCONFIGURED The developer has misconfigured their application in some way.
int GAME_NOT_FOUND The specified game ID was not recognized by the server.
int INVALID_REAL_TIME_ROOM_ID The real-time room ID provided to the operation was not valid, or does not correspond to the currently active real-time room.
int LICENSE_CHECK_FAILED The game is not licensed to the user.
int MATCH_ERROR_ALREADY_REMATCHED The specified match has already had a rematch created.
int MATCH_ERROR_INACTIVE_MATCH The match is not currently active.
int MATCH_ERROR_INVALID_MATCH_RESULTS The match results provided in this API call are invalid.
int MATCH_ERROR_INVALID_MATCH_STATE The match is not in the correct state to perform the specified action.
int MATCH_ERROR_INVALID_PARTICIPANT_STATE One or more participants in this match are not in valid states.
int MATCH_ERROR_LOCALLY_MODIFIED The specified match has already been modified locally.
int MATCH_ERROR_OUT_OF_DATE_VERSION The match data is out of date.
int MATCH_NOT_FOUND The specified match cannot be found.
int MULTIPLAYER_DISABLED This game does not support multiplayer.
int MULTIPLAYER_ERROR_CREATION_NOT_ALLOWED The user is not allowed to create a new multiplayer game at this time.
int MULTIPLAYER_ERROR_INVALID_MULTIPLAYER_TYPE The match is not the right type to perform this action on.
int MULTIPLAYER_ERROR_INVALID_OPERATION This multiplayer operation is not valid, and the server rejected it.
int MULTIPLAYER_ERROR_NOT_TRUSTED_TESTER The user attempted to invite another user who was not authorized to see the game.
int NETWORK_ERROR_NO_DATA A network error occurred while attempting to retrieve fresh data, and no data was available locally.
int NETWORK_ERROR_OPERATION_FAILED A network error occurred while attempting to perform an operation that requires network access.
int OPERATION_IN_FLIGHT Trying to start a join/create operation while another is already in flight.
int PARTICIPANT_NOT_CONNECTED The ID of the participant provided by the user is not currently connected to the client in the real-time room.
int REAL_TIME_CONNECTION_FAILED Failed to initialize the network connection for a real-time room.
int REAL_TIME_INACTIVE_ROOM The room is not currently active.
int REAL_TIME_MESSAGE_SEND_FAILED Failed to send message to the peer participant for a real-time room.
int REAL_TIME_ROOM_NOT_JOINED Failed to send message to the peer participant for a real-time room, since the user has not joined the room.
int SNAPSHOT_COMMIT_FAILED The attempt to commit the snapshot change failed.
int SNAPSHOT_CONFLICT_MISSING The conflict that was being resolved doesn't exist.
int SNAPSHOT_CONTENTS_UNAVAILABLE An error occurred while attempting to open the contents of the snapshot.
int SNAPSHOT_CREATION_FAILED The attempt to create a snapshot failed.
int SNAPSHOT_FOLDER_UNAVAILABLE The root folder for snapshots could not be found or created.
int SNAPSHOT_NOT_FOUND The specified snapshot does not exist on the server.
int VIDEO_ALREADY_CAPTURING Request could not complete because we were already capturing.
int VIDEO_NOT_ACTIVE Request could not complete because there is no active screencast capture session.
int VIDEO_OUT_OF_DISK_SPACE Request could not complete because the device is out of disk space.
int VIDEO_PERMISSION_ERROR Request could not complete due to permission problems.
int VIDEO_STORAGE_ERROR Request could not complete due to a storage I/O error.
int VIDEO_UNEXPECTED_CAPTURE_ERROR Request could not complete because something unrecoverable happened in the capture service.
int VIDEO_UNSUPPORTED Request could not complete because the request or its options are not supported.

Inherited Constant Summary

Public Method Summary

static String
getStatusCodeString(int statusCode)
Get the string associated with the status code.

Inherited Method Summary

Constants

public static final int ACHIEVEMENT_NOT_INCREMENTAL

Indicates that the call to increment achievement failed since the achievement is not an incremental achievement.

Constant Value: 26562

public static final int ACHIEVEMENT_UNKNOWN

Could not find the achievement, so the operation to update the achievement failed.

Constant Value: 26561

public static final int ACHIEVEMENT_UNLOCKED

Indicates that the incremental achievement was also unlocked when the call was made to increment the achievement.

Constant Value: 26563

public static final int ACHIEVEMENT_UNLOCK_FAILURE

An incremental achievement cannot be unlocked directly, so the call to unlock achievement failed.

Constant Value: 26560

public static final int APP_MISCONFIGURED

The developer has misconfigured their application in some way. The logs will contain more data about the error and the appropriate resolution.

Constant Value: 26508

public static final int GAME_NOT_FOUND

The specified game ID was not recognized by the server.

Constant Value: 26509

public static final int INVALID_REAL_TIME_ROOM_ID

The real-time room ID provided to the operation was not valid, or does not correspond to the currently active real-time room.

Constant Value: 26602

public static final int LICENSE_CHECK_FAILED

The game is not licensed to the user. Further calls will return the same code.

Constant Value: 26507

public static final int MATCH_ERROR_ALREADY_REMATCHED

The specified match has already had a rematch created. Only one rematch may be created for any initial match.

Constant Value: 26595

public static final int MATCH_ERROR_INACTIVE_MATCH

The match is not currently active. This action cannot be performed on an inactive match.

Constant Value: 26591

public static final int MATCH_ERROR_INVALID_MATCH_RESULTS

The match results provided in this API call are invalid. This covers cases of duplicate results, results for players who are not in the match, etc.

Constant Value: 26594

public static final int MATCH_ERROR_INVALID_MATCH_STATE

The match is not in the correct state to perform the specified action.

Constant Value: 26592

public static final int MATCH_ERROR_INVALID_PARTICIPANT_STATE

One or more participants in this match are not in valid states. This could occur if a specified participant is not actually a participant of the match, or is invalid, or is in an incorrect state to make the API call. Check the logs for more detailed information.

Constant Value: 26590

public static final int MATCH_ERROR_LOCALLY_MODIFIED

The specified match has already been modified locally. This operation cannot be performed until the match has been sent to the server.

Constant Value: 26597

public static final int MATCH_ERROR_OUT_OF_DATE_VERSION

The match data is out of date. Someone else has modified the data on the server, so the request could not be completed safely.

Constant Value: 26593

public static final int MATCH_NOT_FOUND

The specified match cannot be found. The provided match ID does not correspond to any known match.

Constant Value: 26596

public static final int MULTIPLAYER_DISABLED

This game does not support multiplayer. This could occur if the linked app is not configured appropriately in the developer console.

Constant Value: 26583

public static final int MULTIPLAYER_ERROR_CREATION_NOT_ALLOWED

The user is not allowed to create a new multiplayer game at this time. This could occur if the user has too many outstanding invitations already.

Constant Value: 26580

public static final int MULTIPLAYER_ERROR_INVALID_MULTIPLAYER_TYPE

The match is not the right type to perform this action on. For example, this error will be returned when trying to take a turn in a real-time match.

Constant Value: 26582

public static final int MULTIPLAYER_ERROR_INVALID_OPERATION

This multiplayer operation is not valid, and the server rejected it. Check the logs for more information.

Constant Value: 26584

public static final int MULTIPLAYER_ERROR_NOT_TRUSTED_TESTER

The user attempted to invite another user who was not authorized to see the game. This can occur if a trusted tester invites a user who is not a trusted tester while the game is unpublished. In this case, the invitations will not be sent.

Constant Value: 26581

public static final int NETWORK_ERROR_NO_DATA

A network error occurred while attempting to retrieve fresh data, and no data was available locally.

Constant Value: 26504

public static final int NETWORK_ERROR_OPERATION_FAILED

A network error occurred while attempting to perform an operation that requires network access. The operation may be retried later.

Constant Value: 26506

public static final int OPERATION_IN_FLIGHT

Trying to start a join/create operation while another is already in flight.

Constant Value: 26607

public static final int PARTICIPANT_NOT_CONNECTED

The ID of the participant provided by the user is not currently connected to the client in the real-time room.

Constant Value: 26603

public static final int REAL_TIME_CONNECTION_FAILED

Failed to initialize the network connection for a real-time room.

Constant Value: 26600

public static final int REAL_TIME_INACTIVE_ROOM

The room is not currently active. This action cannot be performed on an inactive room.

Constant Value: 26605

public static final int REAL_TIME_MESSAGE_SEND_FAILED

Failed to send message to the peer participant for a real-time room.

Constant Value: 26601

public static final int REAL_TIME_ROOM_NOT_JOINED

Failed to send message to the peer participant for a real-time room, since the user has not joined the room.

Constant Value: 26604

public static final int SNAPSHOT_COMMIT_FAILED

The attempt to commit the snapshot change failed. See the device logs for more details.

Constant Value: 26573

public static final int SNAPSHOT_CONFLICT_MISSING

The conflict that was being resolved doesn't exist. This could occur if another device resolved this conflict first, or if an inappropriate conflict ID was provided to resolveConflict(GoogleApiClient, String, Snapshot).

Constant Value: 26576

public static final int SNAPSHOT_CONTENTS_UNAVAILABLE

An error occurred while attempting to open the contents of the snapshot. See the device logs for more details.

Constant Value: 26572

public static final int SNAPSHOT_CREATION_FAILED

The attempt to create a snapshot failed. See the device logs for more details.

Constant Value: 26571

public static final int SNAPSHOT_FOLDER_UNAVAILABLE

The root folder for snapshots could not be found or created. See the device logs for more details on the failure.

Constant Value: 26575

public static final int SNAPSHOT_NOT_FOUND

The specified snapshot does not exist on the server.

Constant Value: 26570

public static final int VIDEO_ALREADY_CAPTURING

Request could not complete because we were already capturing.

Constant Value: 26625

public static final int VIDEO_NOT_ACTIVE

Request could not complete because there is no active screencast capture session.

Constant Value: 26620

public static final int VIDEO_OUT_OF_DISK_SPACE

Request could not complete because the device is out of disk space.

Constant Value: 26626

public static final int VIDEO_PERMISSION_ERROR

Request could not complete due to permission problems.

Constant Value: 26622

public static final int VIDEO_STORAGE_ERROR

Request could not complete due to a storage I/O error.

Constant Value: 26623

public static final int VIDEO_UNEXPECTED_CAPTURE_ERROR

Request could not complete because something unrecoverable happened in the capture service.

Constant Value: 26624

public static final int VIDEO_UNSUPPORTED

Request could not complete because the request or its options are not supported.

Constant Value: 26621

Public Methods

public static String getStatusCodeString (int statusCode)

Get the string associated with the status code. This can be used for clearer logging messages to avoid having to look up error codes.

Parameters
statusCode The status code to get the message string for.