WatchFacePushManager.SetWatchFaceAsActiveException


class WatchFacePushManager.SetWatchFaceAsActiveException : Exception


An exception that can be thrown by setWatchFaceAsActive

Summary

Constants

const Int

The slot ID provided is not valid.

const Int

The maximum number of attempts to set the watch face as active has been reached.

const Int

The required permission to set the watch face as active is missing.

const Int

Unknown error while setting a watch face as active.

Public constructors

SetWatchFaceAsActiveException(errorCode: Int, rootCause: Throwable?)

Public properties

Int

The specific subtype of error occurred.

open String?

Inherited properties

From kotlin.Throwable

Constants

ERROR_INVALID_SLOT_ID

const val ERROR_INVALID_SLOT_IDInt

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

ERROR_MAXIMUM_ATTEMPTS_REACHED

const val ERROR_MAXIMUM_ATTEMPTS_REACHEDInt

The maximum number of attempts to set the watch face as active has been reached.

ERROR_MISSING_PERMISSION

const val ERROR_MISSING_PERMISSION = 1000: Int

The required permission to set the watch face as active is missing.

ERROR_UNKNOWN

const val ERROR_UNKNOWNInt

Unknown error while setting a watch face as active. 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

SetWatchFaceAsActiveException

Added in 1.0.0-alpha01
SetWatchFaceAsActiveException(errorCode: Int, rootCause: Throwable? = null)
Parameters
errorCode: Int

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

rootCause: Throwable? = null

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?