CastStatusCodes

public final class CastStatusCodes extends CommonStatusCodes

Status codes for the Cast APIs.

Status codes for the Cast API that are returned in various callbacks as error parameter values.

Constant Summary

int APPLICATION_NOT_FOUND Status code indicating that a requested application could not be found.
int APPLICATION_NOT_RUNNING Status code indicating that a requested application is not currently running.
int AUTHENTICATION_FAILED Status code indicating an authentication failure.
int CANCELED Status code indicating that an in-progress request has been canceled, most likely because another action has preempted it.
int DEVICE_CONNECTION_SUSPENDED Status code indicating that the device connection is suspended and is not able to complete a request.
int ERROR_SERVICE_CREATION_FAILED The Cast Remote Display service could not be created.
int ERROR_SERVICE_DISCONNECTED The Cast Remote Display service was disconnected.
int ERROR_STOPPING_SERVICE_FAILED The Cast Remote Display service could not be stopped.
int FAILED Status code indicating that the in-progress request failed.
int INTERNAL_ERROR Status code indicating that an internal error has occurred.
int INTERRUPTED Status code indicating a blocking call was interrupted while waiting and did not run to completion.
int INVALID_REQUEST Status code indicating that an invalid request was made.
int MEDIA_ERROR Status code indicating other generic errors for the media request.
int MESSAGE_SEND_BUFFER_TOO_FULL Status code indicating that a message could not be sent because there is not enough room in the send buffer at this time.
int MESSAGE_TOO_LARGE Status code indicating that a message could not be sent because it is too large.
int NETWORK_ERROR Status code indicating a network I/O error.
int NOT_ALLOWED Status code indicating that the request was disallowed and could not be completed.
int REPLACED Status code indicating that the request's progress is no longer being tracked because another request of the same type has been made before the first request completed.
int SUCCESS Status code indicating no error (success).
int TIMEOUT Status code indicating that an operation has timed out.
int UNKNOWN_ERROR Status code indicating that an unknown, unexpected error has occurred.

Inherited Constant Summary

Public Method Summary

static String
getStatusCodeString(int statusCode)
Returns an untranslated debug (not user-friendly!) string based on the current status code.

Inherited Method Summary

Constants

public static final int APPLICATION_NOT_FOUND

Status code indicating that a requested application could not be found.

Constant Value: 2004

public static final int APPLICATION_NOT_RUNNING

Status code indicating that a requested application is not currently running.

Constant Value: 2005

public static final int AUTHENTICATION_FAILED

Status code indicating an authentication failure.

Constant Value: 2000

public static final int CANCELED

Status code indicating that an in-progress request has been canceled, most likely because another action has preempted it.

Constant Value: 2002

public static final int DEVICE_CONNECTION_SUSPENDED

Status code indicating that the device connection is suspended and is not able to complete a request. The Cast ApiClient will soon be suspended and GoogleApiClient.ConnectionCallbacks#onConnectionSuspended(int) will be called to notify about the suspension.

Constant Value: 2016

public static final int ERROR_SERVICE_CREATION_FAILED

The Cast Remote Display service could not be created.

Constant Value: 2200

public static final int ERROR_SERVICE_DISCONNECTED

The Cast Remote Display service was disconnected.

Constant Value: 2201

public static final int ERROR_STOPPING_SERVICE_FAILED

The Cast Remote Display service could not be stopped.

Constant Value: 2202

public static final int FAILED

Status code indicating that the in-progress request failed.

Constant Value: 2100

public static final int INTERNAL_ERROR

Status code indicating that an internal error has occurred.

Constant Value: 8

public static final int INTERRUPTED

Status code indicating a blocking call was interrupted while waiting and did not run to completion.

Constant Value: 14

public static final int INVALID_REQUEST

Status code indicating that an invalid request was made.

Constant Value: 2001

public static final int MEDIA_ERROR

Status code indicating other generic errors for the media request.

Constant Value: 2104

public static final int MESSAGE_SEND_BUFFER_TOO_FULL

Status code indicating that a message could not be sent because there is not enough room in the send buffer at this time.

Constant Value: 2007

public static final int MESSAGE_TOO_LARGE

Status code indicating that a message could not be sent because it is too large.

Constant Value: 2006

public static final int NETWORK_ERROR

Status code indicating a network I/O error.

Constant Value: 7

public static final int NOT_ALLOWED

Status code indicating that the request was disallowed and could not be completed.

Constant Value: 2003

public static final int REPLACED

Status code indicating that the request's progress is no longer being tracked because another request of the same type has been made before the first request completed.

Constant Value: 2103

public static final int SUCCESS

Status code indicating no error (success).

Constant Value: 0

public static final int TIMEOUT

Status code indicating that an operation has timed out.

Constant Value: 15

public static final int UNKNOWN_ERROR

Status code indicating that an unknown, unexpected error has occurred.

Constant Value: 13

Public Methods

public static String getStatusCodeString (int statusCode)

Returns an untranslated debug (not user-friendly!) string based on the current status code.