WatchFacePushManager.RemoveWatchFaceException


public final class WatchFacePushManager.RemoveWatchFaceException extends Exception


An exception that can be thrown by removeWatchFace

Summary

Constants

static final int

The slot ID provided is not valid.

static final int

Unknown error while removing a watch face.

Public constructors

RemoveWatchFaceException(int errorCode, @NonNull Throwable rootCause)

Public methods

final int

The specific subtype of error occurred.

String

Constants

ERROR_INVALID_SLOT_ID

public static final int ERROR_INVALID_SLOT_ID

The slot ID provided is not valid. The watch face might have been removed previously, or the ID is simply incorrect. Developers should make sure to retrieve slot IDs by calling listWatchFaces or addWatchFace.

ERROR_UNKNOWN

public static final int ERROR_UNKNOWN

Unknown error while removing a watch face. Typically this means that the Watch Face Push service on the watch could not be accessed or that the watch may be in a bad state.

Public constructors

RemoveWatchFaceException

Added in 1.0.0-alpha01
public RemoveWatchFaceException(int errorCode, @NonNull Throwable rootCause)
Parameters
int errorCode

The specific subtype of error occurred. See ErrorCode for the possible values.

@NonNull Throwable rootCause

The exception that caused the problem in the first place.

Public methods

getErrorCode

Added in 1.0.0-alpha01
public final int getErrorCode()

The specific subtype of error occurred. See ErrorCode for the possible values.

getMessage

public String getMessage()