GamesClientStatusCodes

  • GamesClientStatusCodes provides status codes for failures in Games Clients methods.

  • The status codes cover various issues including problems with achievements, application configuration, consent, network errors, and snapshot operations.

  • Specific status codes exist for errors related to video capturing and storage.

  • A static methodgetStatusCodeString is available to get a descriptive string for a given status code.

public final classGamesClientStatusCodes extendsCommonStatusCodes

Status codes for Games Clients methods resultTask failures.

Constant Summary

int ACHIEVEMENT_NOT_INCREMENTALIndicates that the call to increment achievement failed since the achievement is not an incremental achievement.
int ACHIEVEMENT_UNKNOWNCould not find the achievement, so the operation to update the achievement failed.
int ACHIEVEMENT_UNLOCKEDIndicates that the incremental achievement was also unlocked when the call was made to increment the achievement.
int ACHIEVEMENT_UNLOCK_FAILUREAn incremental achievement cannot be unlocked directly, so the call to unlock achievement failed.
int APP_MISCONFIGUREDThe developer has misconfigured their application in some way.
int CONSENT_REQUIREDThe player needs to provide consent to allow the request.
int GAME_NOT_FOUNDThe specified game ID was not recognized by the server.
int LICENSE_CHECK_FAILEDThe game is not licensed to the user.
int NETWORK_ERROR_NO_DATAA network error occurred while attempting to retrieve fresh data, and no data was available locally.
int NETWORK_ERROR_OPERATION_FAILEDA network error occurred while attempting to perform an operation that requires network access.
int OPERATION_IN_FLIGHTTrying to start a join/create operation while another is already in flight.
int SNAPSHOT_COMMIT_FAILEDThe attempt to commit the snapshot change failed.
int SNAPSHOT_CONFLICT_MISSINGThe conflict that was being resolved doesn't exist.
int SNAPSHOT_CONTENTS_UNAVAILABLEAn error occurred while attempting to open the contents of the snapshot.
int SNAPSHOT_CREATION_FAILEDThe attempt to create a snapshot failed.
int SNAPSHOT_FOLDER_UNAVAILABLEThe root folder for snapshots could not be found or created.
int SNAPSHOT_NOT_FOUNDThe specified snapshot does not exist on the server.
int VIDEO_ALREADY_CAPTURINGRequest could not complete because we were already capturing.
int VIDEO_NOT_ACTIVERequest could not complete because there is no active screencast capture session.
int VIDEO_OUT_OF_DISK_SPACERequest could not complete because the device is out of disk space.
int VIDEO_PERMISSION_ERRORRequest could not complete due to permission problems.
int VIDEO_STORAGE_ERRORRequest could not complete due to a storage I/O error.
int VIDEO_UNEXPECTED_CAPTURE_ERRORRequest could not complete because something unrecoverable happened in the capture service.
int VIDEO_UNSUPPORTEDRequest could not complete because the request or its options are not supported.

Inherited Constant Summary

From class com.google.android.gms.common.api.CommonStatusCodes
intAPI_NOT_CONNECTED
intCANCELED
intCONNECTION_SUSPENDED_DURING_CALL
intDEVELOPER_ERROR
intERROR
intINTERNAL_ERROR
intINTERRUPTED
intINVALID_ACCOUNT
intNETWORK_ERROR
intRECONNECTION_TIMED_OUT
intRECONNECTION_TIMED_OUT_DURING_UPDATE
intREMOTE_EXCEPTION
intRESOLUTION_REQUIRED
intSERVICE_DISABLED
intSERVICE_VERSION_UPDATE_REQUIRED
intSIGN_IN_REQUIRED
intSUCCESS
intSUCCESS_CACHE
intTIMEOUT

Public Method Summary

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

Inherited Method Summary

From class com.google.android.gms.common.api.CommonStatusCodes
staticString
getStatusCodeString(int arg0)
From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Constants

public static final intACHIEVEMENT_NOT_INCREMENTAL

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

Constant Value:26562

public static final intACHIEVEMENT_UNKNOWN

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

Constant Value:26561

public static final intACHIEVEMENT_UNLOCKED

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

Constant Value:26563

public static final intACHIEVEMENT_UNLOCK_FAILURE

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

Constant Value:26560

public static final intAPP_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 intCONSENT_REQUIRED

The player needs to provide consent to allow the request.

Constant Value:26703

public static final intGAME_NOT_FOUND

The specified game ID was not recognized by the server.

Constant Value:26509

public static final intLICENSE_CHECK_FAILED

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

Constant Value:26507

public static final intNETWORK_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 intNETWORK_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 intOPERATION_IN_FLIGHT

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

Constant Value:26607

public static final intSNAPSHOT_COMMIT_FAILED

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

Constant Value:26573

public static final intSNAPSHOT_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 SnapshotsClient.resolveConflict(String, Snapshot).

Constant Value:26576

public static final intSNAPSHOT_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 intSNAPSHOT_CREATION_FAILED

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

Constant Value:26571

public static final intSNAPSHOT_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 intSNAPSHOT_NOT_FOUND

The specified snapshot does not exist on the server.

Constant Value:26570

public static final intVIDEO_ALREADY_CAPTURING

Request could not complete because we were already capturing.

Constant Value:26625

public static final intVIDEO_NOT_ACTIVE

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

Constant Value:26620

public static final intVIDEO_OUT_OF_DISK_SPACE

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

Constant Value:26626

public static final intVIDEO_PERMISSION_ERROR

Request could not complete due to permission problems.

Constant Value:26622

public static final intVIDEO_STORAGE_ERROR

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

Constant Value:26623

public static final intVIDEO_UNEXPECTED_CAPTURE_ERROR

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

Constant Value:26624

public static final intVIDEO_UNSUPPORTED

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

Constant Value:26621

Public Methods

public staticStringgetStatusCodeString(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
statusCodeThe status code to get the message string for.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.