Error codes for wearable API failures. These values may be returned by APIs to indicate the success or failure of a request.
Constant Summary
int | ACCOUNT_KEY_CREATION_FAILED | Indicates that creating a Fast Pair account key through the FastPairClient failed. |
int | ASSET_UNAVAILABLE | Indicates that the requested asset is unavailable. |
int | DATA_ITEM_TOO_LARGE | Indicates that the data item was too large to set. |
int | DUPLICATE_CAPABILITY | Indicates that the specified capability already exists. |
int | DUPLICATE_LISTENER | Indicates that the specified listener is already registered. |
int | FEATURE_DISABLED | Indicates that the requested action depends on a feature which is not enabled |
int | INVALID_TARGET_NODE | Indicates that the targeted node is not a valid node in the wearable network. |
int | MIGRATION_NOT_CANCELLABLE | Indicates that the migration requested for cancellation is not at a cancellable point |
int | MODEL_ID_UNAVAILABLE | Indicates that a model ID cannot be obtained for the device for account key creation. |
int | NO_MIGRATION_FOUND_TO_CANCEL | Indicates that an active migration to cancel could not be found |
int | TARGET_NODE_NOT_CONNECTED | Indicates that the targeted node is not accessible in the wearable network. |
int | UNKNOWN_CAPABILITY | Indicates that the specified capability is not recognized. |
int | UNKNOWN_LISTENER | Indicates that the specified listener is not recognized. |
int | UNSUPPORTED_BY_TARGET_NODE | Indicates that the API is not supported by the target node |
int | WIFI_CREDENTIAL_SYNC_NO_CREDENTIAL_FETCHED | Indicates that the WiFi credential sync no credential fetched. |
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 ACCOUNT_KEY_CREATION_FAILED
Indicates that creating a Fast Pair account key through the FastPairClient failed.
public static final int ASSET_UNAVAILABLE
Indicates that the requested asset is unavailable.
public static final int DATA_ITEM_TOO_LARGE
Indicates that the data item was too large to set.
public static final int DUPLICATE_CAPABILITY
Indicates that the specified capability already exists.
public static final int DUPLICATE_LISTENER
Indicates that the specified listener is already registered.
public static final int FEATURE_DISABLED
Indicates that the requested action depends on a feature which is not enabled
public static final int INVALID_TARGET_NODE
Indicates that the targeted node is not a valid node in the wearable network.
public static final int MIGRATION_NOT_CANCELLABLE
Indicates that the migration requested for cancellation is not at a cancellable point
public static final int MODEL_ID_UNAVAILABLE
Indicates that a model ID cannot be obtained for the device for account key creation.
public static final int NO_MIGRATION_FOUND_TO_CANCEL
Indicates that an active migration to cancel could not be found
public static final int TARGET_NODE_NOT_CONNECTED
Indicates that the targeted node is not accessible in the wearable network.
public static final int UNKNOWN_CAPABILITY
Indicates that the specified capability is not recognized.
public static final int UNKNOWN_LISTENER
Indicates that the specified listener is not recognized.
public static final int UNSUPPORTED_BY_TARGET_NODE
Indicates that the API is not supported by the target node
public static final int WIFI_CREDENTIAL_SYNC_NO_CREDENTIAL_FETCHED
Indicates that the WiFi credential sync no credential fetched.
Public Methods
public static String getStatusCodeString (int statusCode)
Returns an untranslated debug (not user-friendly!) string based on the current status code.