WatchFacePushManager.UpdateWatchFaceException


class WatchFacePushManager.UpdateWatchFaceException : Exception


An exception that can be thrown by updateWatchFace

Summary

Constants

const Int

The package name of the watch face is invalid.

const Int

The slot ID provided is not valid.

const Int

The validation token provided does not match the watch face.

const Int

The provided watch face is not a valid Android APK.

const Int

Unexpected content in the APK.

const Int

Unknown error while updating a watch face.

Public constructors

UpdateWatchFaceException(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 of the watch face is invalid.

The package name of the watch face must start with the package name of the Watch Face Push client, followed by the 'watchfacepush' keyword, ending with the unique watch face name.

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_INVALID_VALIDATION_TOKEN

const val ERROR_INVALID_VALIDATION_TOKENInt

The validation token provided does not match the watch face. Please see the Watch Face Push documentation to see how to generate a validation token correctly.

ERROR_MALFORMED_WATCHFACE_APK

const val ERROR_MALFORMED_WATCHFACE_APKInt

The provided watch face is not a valid Android APK.

ERROR_UNEXPECTED_CONTENT

const val ERROR_UNEXPECTED_CONTENTInt

Unexpected content in the APK. The APK must be a WFF watchface which only contains the watchface XML file and the associated resources. The APK can't contain any executable code.

ERROR_UNKNOWN

const val ERROR_UNKNOWNInt

Unknown error while updating 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

UpdateWatchFaceException

Added in 1.0.0-alpha01
UpdateWatchFaceException(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?