Structure

WatchKitError

An error reported by WatchKit.

Declaration

struct WatchKitError

Topics

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.

enum WatchKitError.Code

Error codes reported by WatchKit.

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

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

Error Domain

let WatchKitErrorDomain: String

The domain for WatchKit errors. This value is used in the NSError class.

static var errorDomain: String

The domain for WatchKit errors. This value is used in the NSError class.

Instance Properties

var errorCode: Int

The error code.

var errorUserInfo: [String : Any]

The user info dictionary.

var localizedDescription: String

A localized description of the error.