WatchFacePushManager.RemoveWatchFaceException


class WatchFacePushManager.RemoveWatchFaceException : Exception


An exception that can be thrown by removeWatchFace

Summary

Constants

const Int

The slot ID provided is not valid.

const Int

Unknown error while removing a watch face.

Public constructors

RemoveWatchFaceException(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. Developers should make sure to retrieve slot IDs by calling listWatchFaces or addWatchFace.

ERROR_UNKNOWN

const val ERROR_UNKNOWNInt

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
RemoveWatchFaceException(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?