WatchFacePushManager.ListWatchFacesException


public final class WatchFacePushManager.ListWatchFacesException extends Exception


An exception that can be thrown by listWatchFaces

Summary

Constants

static final int

Unknown error while listing watch faces.

Public constructors

ListWatchFacesException(int errorCode, @NonNull Throwable rootCause)

Public methods

final int

The specific subtype of error occurred.

String

Constants

ERROR_UNKNOWN

public static final int ERROR_UNKNOWN

Unknown error while listing watch faces. 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

ListWatchFacesException

Added in 1.0.0
public ListWatchFacesException(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
public final int getErrorCode()

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

getMessage

public String getMessage()