Enumeration

WatchKitError.Code

Error codes reported by WatchKit.

Declaration

enum WatchKitError.Code : Int, _ErrorCodeProtocol

Topics

Error Codes

case applicationDelegateWatchKitRequestReplyNotCalled

An unresponsive delegate error. WatchKit reports this error when you call the openParentApplication(_:reply:) method and the iOS app delegate that receives the message fails to return a reply.

case downloadFailed

A download error. WatchKit reports this error when a media file could not be downloaded.

case invalidArgument

An invalid argument error. WatchKit reports this error when you specify invalid settings for one of the system supplied interfaces.

case mediaPlayerFailed

A media player error. WatchKit reports this error when it is unable to play a media file.

case recordingFailed

An audio recording error. WatchKit reports this error when it is unable to record audio using the audio recording interface.

case unknown

An unknown error. This error code is reported when the precise reason for failure could not be determined.

See Also

Error Codes

static var applicationDelegateWatchKitRequestReplyNotCalled: WatchKitError.Code

An unresponsive delegate error. WatchKit reports this error when you call the openParentApplication(_:reply:) method and the iOS app delegate that receives the message fails to return a reply.

static var downloadFailed: WatchKitError.Code

A download error. WatchKit reports this error when a media file could not be downloaded.

static var invalidArgument: WatchKitError.Code

An invalid argument error. WatchKit reports this error when you specify invalid settings for one of the system supplied interfaces.

static var mediaPlayerFailed: WatchKitError.Code

A media player error. WatchKit reports this error when it is unable to play a media file.

static var recordingFailed: WatchKitError.Code

An audio recording error. WatchKit reports this error when it is unable to record audio using the audio recording interface.

static var unknown: WatchKitError.Code

An unknown error. This error code is reported when the precise reason for failure could not be determined.

static func != (WatchKitError, WatchKitError) -> Bool

Returns a Boolean value indicating whether two values are not equal.