Enumeration

WCError.Code

Constants for errors returned during a session.

Declaration

enum WCError.Code : Int, _ErrorCodeProtocol

Topics

Constants

case genericError

An error indicating that some unknown problem occurred.

case sessionNotSupported

An error indicating that the current device does not support the use of session objects.

case sessionMissingDelegate

An error indicating that the WatchKit extension does not have a valid extension delegate to process events.

case sessionNotActivated

An error indicating that the other device has not yet activated its session.

case deviceNotPaired

An error indicating that the current device is not paired with a counterpart device. Communication can happen only between paired devices.

case watchAppNotInstalled

An error indicating that the Watch app is not installed on the user’s Apple Watch.

case notReachable

An error indicating that the counterpart app is not currently reachable. This error occurs when you send an immediate message to an app that is not running.

case invalidParameter

An error indicating that a parameter was invalid.

case payloadTooLarge

An error indicating that the item being sent exceeds the maximum size limit. This type of error can occur for both data dictionaries and files.

case payloadUnsupportedTypes

An error indicating that a dictionary contains non property-list types.

case messageReplyFailed

An error indicating that the reply could not be returned.

case messageReplyTimedOut

An error indicating that the counterpart app did not return a reply in time.

case fileAccessDenied

An error indicating that a file could not be transferred because it was inaccessible. This error can occur when the file path is invalid or the app has insufficient privileges to access the file.

case deliveryFailed

An error indicating that the payload could not be delivered.

case insufficientSpace

An error indicating that there is not enough space on the receiving side to store the data being sent.

case sessionInactive

An error indicating that the session is inactive. This error occurs when you try to send data using an inactive session.

case transferTimedOut

An error indicating that the timeout value was reached before the transfer completed.