---
title: WCError.Code
framework: watchconnectivity
role: symbol
role_heading: Enumeration
path: watchconnectivity/wcerror/code
---

# WCError.Code

Constants for errors during a session.

## Declaration

```swift
enum Code
```

## Topics

### Error Codes

- [WCError.Code.genericError](watchconnectivity/wcerror/code/genericerror.md)
- [WCError.Code.sessionNotSupported](watchconnectivity/wcerror/code/sessionnotsupported.md)
- [WCError.Code.sessionMissingDelegate](watchconnectivity/wcerror/code/sessionmissingdelegate.md)
- [WCError.Code.sessionNotActivated](watchconnectivity/wcerror/code/sessionnotactivated.md)
- [WCError.Code.deviceNotPaired](watchconnectivity/wcerror/code/devicenotpaired.md)
- [WCError.Code.watchAppNotInstalled](watchconnectivity/wcerror/code/watchappnotinstalled.md)
- [WCError.Code.notReachable](watchconnectivity/wcerror/code/notreachable.md)
- [WCError.Code.invalidParameter](watchconnectivity/wcerror/code/invalidparameter.md)
- [WCError.Code.payloadTooLarge](watchconnectivity/wcerror/code/payloadtoolarge.md)
- [WCError.Code.payloadUnsupportedTypes](watchconnectivity/wcerror/code/payloadunsupportedtypes.md)
- [WCError.Code.messageReplyFailed](watchconnectivity/wcerror/code/messagereplyfailed.md)
- [WCError.Code.messageReplyTimedOut](watchconnectivity/wcerror/code/messagereplytimedout.md)
- [WCError.Code.fileAccessDenied](watchconnectivity/wcerror/code/fileaccessdenied.md)
- [WCError.Code.deliveryFailed](watchconnectivity/wcerror/code/deliveryfailed.md)
- [WCError.Code.insufficientSpace](watchconnectivity/wcerror/code/insufficientspace.md)
- [WCError.Code.sessionInactive](watchconnectivity/wcerror/code/sessioninactive.md)
- [WCError.Code.transferTimedOut](watchconnectivity/wcerror/code/transfertimedout.md)
- [WCError.Code.companionAppNotInstalled](watchconnectivity/wcerror/code/companionappnotinstalled.md)
- [WCError.Code.watchOnlyApp](watchconnectivity/wcerror/code/watchonlyapp.md)

### Initializers

- [init(rawValue:)](watchconnectivity/wcerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [WCSessionActivationState](watchconnectivity/wcsessionactivationstate.md)
- [WCErrorDomain](watchconnectivity/wcerrordomain.md)
- [WCError](watchconnectivity/wcerror.md)
