WatchFacePushManager.IsWatchFaceActiveException


public final class WatchFacePushManager.IsWatchFaceActiveException extends Exception


An exception that can be thrown by isWatchFaceActive

Summary

Constants

static final int

The package name provided is not valid.

static final int

Unknown error while querying for watch face.

Public constructors

IsWatchFaceActiveException(int errorCode, @NonNull Throwable rootCause)

Public methods

final int

The specific subtype of error occurred.

String

Constants

ERROR_INVALID_PACKAGE_NAME

public static final int ERROR_INVALID_PACKAGE_NAME

The package name provided is not valid. The watch face might have been removed previously, or the package name is simply incorrect. Make sure to retrieve the package name by calling listWatchFaces or addWatchFace.

ERROR_UNKNOWN

public static final int ERROR_UNKNOWN

Unknown error while querying for 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

IsWatchFaceActiveException

Added in 1.0.0-alpha01
public IsWatchFaceActiveException(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()