WatchFacePushManager.UpdateException
public
static
class
WatchFacePushManager.UpdateException
extends RuntimeException
| java.lang.Object | ||||
| ↳ | java.lang.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | java.lang.RuntimeException | |||
| ↳ | com.google.wear.services.watchfaces.watchfacepush.WatchFacePushManager.UpdateException | |||
Exception representing an error of the WatchFacePushManager.updateWatchFace method.
Summary
Fields | |
|---|---|
public
static
final
int |
UPDATE_INVALID_CONTENT_ERROR
The provided file is not a valid Android APK. |
public
static
final
int |
UPDATE_INVALID_PACKAGE_NAME_ERROR
The watch face package name is invalid. |
public
static
final
int |
UPDATE_INVALID_SLOT_ID_ERROR
The watch face slot ID is invalid. |
public
static
final
int |
UPDATE_INVALID_VALIDATION_TOKEN_ERROR
The validation token is invalid. |
public
static
final
int |
UPDATE_SECURITY_ERROR
Security exception when attempting to install an APK. |
public
static
final
int |
UPDATE_UNKNOWN_ERROR
Unknown error while updating a watch face. |
Public constructors | |
|---|---|
UpdateException(int errorCode)
|
|
UpdateException(Throwable cause)
|
|
Public methods | |
|---|---|
int
|
getErrorCode()
|
Inherited methods | |
|---|---|
Fields
UPDATE_INVALID_CONTENT_ERROR
public static final int UPDATE_INVALID_CONTENT_ERROR
The provided file is not a valid Android APK.
UPDATE_INVALID_PACKAGE_NAME_ERROR
public static final int UPDATE_INVALID_PACKAGE_NAME_ERROR
The watch face package name is invalid. See WatchFacePushManager.updateWatchFace
for the required package name structure.
UPDATE_INVALID_SLOT_ID_ERROR
public static final int UPDATE_INVALID_SLOT_ID_ERROR
The watch face slot ID is invalid.
UPDATE_INVALID_VALIDATION_TOKEN_ERROR
public static final int UPDATE_INVALID_VALIDATION_TOKEN_ERROR
The validation token is invalid.
UPDATE_SECURITY_ERROR
public static final int UPDATE_SECURITY_ERROR
Security exception when attempting to install an APK.
Note: The APK must be a DWF watchface which only contains a declarative XML file for the watchface layout and other resource files. The APK can't contain any executable code.
UPDATE_UNKNOWN_ERROR
public static final int UPDATE_UNKNOWN_ERROR
Unknown error while updating a watch face.
Public constructors
UpdateException
public UpdateException (int errorCode)
| Parameters | |
|---|---|
errorCode |
int: Value is one of the following:
|
UpdateException
public UpdateException (Throwable cause)
| Parameters | |
|---|---|
cause |
Throwable |
Public methods
getErrorCode
public int getErrorCode ()
| Returns | |
|---|---|
int |
Value is one of the following: |