Enumeration

WCErrorCode

Constants for errors returned during a session.

Declaration

typedef enum WCErrorCode : NSInteger {
    ...
} WCErrorCode;

Topics

Constants

WCErrorCodeGenericError

An error indicating that some unknown problem occurred.

WCErrorCodeSessionNotSupported

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

WCErrorCodeSessionMissingDelegate

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

WCErrorCodeSessionNotActivated

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

WCErrorCodeDeviceNotPaired

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

WCErrorCodeWatchAppNotInstalled

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

WCErrorCodeNotReachable

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.

WCErrorCodeInvalidParameter

An error indicating that a parameter was invalid.

WCErrorCodePayloadTooLarge

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.

WCErrorCodePayloadUnsupportedTypes

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

WCErrorCodeMessageReplyFailed

An error indicating that the reply could not be returned.

WCErrorCodeMessageReplyTimedOut

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

WCErrorCodeFileAccessDenied

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.

WCErrorCodeDeliveryFailed

An error indicating that the payload could not be delivered.

WCErrorCodeInsufficientSpace

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

WCErrorCodeSessionInactive

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

WCErrorCodeTransferTimedOut

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software