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

Added in API level 36
public static final int SET_ACTIVE_INVALID_SLOT_ID_ERROR

The watch face slot ID is invalid.

SET_ACTIVE_MAXIMUM_ATTEMPTS_REACHED_ERROR

Added in API level 36
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

Added in API level 36
public static final int SET_ACTIVE_UNKNOWN_ERROR

Unknown error while removing a watch face.

Public constructors

SetActiveException

Added in API level 36
public SetActiveException (int errorCode)

Parameters
errorCode int: Value is one of the following:

SetActiveException

Added in API level 36
public SetActiveException (Throwable cause)

Parameters
cause Throwable

Public methods

getErrorCode

Added in API level 36
public int getErrorCode ()

Returns
int Value is one of the following: