WatchFacePushManager.IsWatchFaceActiveException


class WatchFacePushManager.IsWatchFaceActiveException : Exception


An exception that can be thrown by isWatchFaceActive

Summary

Constants

const Int

The package name provided is not valid.

const Int

Unknown error while querying for watch face.

Public constructors

IsWatchFaceActiveException(errorCode: Int, rootCause: Throwable)

Public properties

Int

The specific subtype of error occurred.

open String?

Inherited properties

From kotlin.Throwable

Constants

ERROR_INVALID_PACKAGE_NAME

const val ERROR_INVALID_PACKAGE_NAMEInt

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

const val ERROR_UNKNOWNInt

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
IsWatchFaceActiveException(errorCode: Int, rootCause: Throwable)
Parameters
errorCode: Int

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

rootCause: Throwable

The exception that caused the problem in the first place.

Public properties

errorCode

Added in 1.0.0-alpha01
val errorCodeInt

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

message

open val messageString?