WatchFacePushManager.SetActiveException
public
static
class
WatchFacePushManager.SetActiveException
extends RuntimeException
| java.lang.Object | ||||
| ↳ | java.lang.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | java.lang.RuntimeException | |||
| ↳ | com.google.wear.services.watchfaces.watchfacepush.WatchFacePushManager.SetActiveException | |||
Exception representing an error of the WatchFacePushManager.removeWatchFace method.
Summary
Fields | |
|---|---|
public
static
final
int |
SET_ACTIVE_INVALID_SLOT_ID_ERROR
The watch face slot ID is invalid. |
public
static
final
int |
SET_ACTIVE_MAXIMUM_ATTEMPTS_REACHED_ERROR
The client has reached the maximum attempts for setting the active watch face. |
public
static
final
int |
SET_ACTIVE_UNKNOWN_ERROR
Unknown error while removing a watch face. |
Public constructors | |
|---|---|
SetActiveException(int errorCode)
|
|
SetActiveException(Throwable cause)
|
|
Public methods | |
|---|---|
int
|
getErrorCode()
|
Inherited methods | |
|---|---|
Fields
SET_ACTIVE_INVALID_SLOT_ID_ERROR
public static final int SET_ACTIVE_INVALID_SLOT_ID_ERROR
The watch face slot ID is invalid.
SET_ACTIVE_MAXIMUM_ATTEMPTS_REACHED_ERROR
public static final int SET_ACTIVE_MAXIMUM_ATTEMPTS_REACHED_ERROR
The client has reached the maximum attempts for setting the active watch face.
SET_ACTIVE_UNKNOWN_ERROR
public static final int SET_ACTIVE_UNKNOWN_ERROR
Unknown error while removing a watch face.
Public constructors
SetActiveException
public SetActiveException (int errorCode)
| Parameters | |
|---|---|
errorCode |
int: Value is one of the following:
|
SetActiveException
public SetActiveException (Throwable cause)
| Parameters | |
|---|---|
cause |
Throwable |
Public methods
getErrorCode
public int getErrorCode ()
| Returns | |
|---|---|
int |
Value is one of the following: |