<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CallKit",
  "identifier" : "/documentation/CallKit/CXError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CallKit"
    ],
    "preciseIdentifier" : "c:@E@CXErrorCode"
  },
  "title" : "CXError.Code"
}
-->

# CXError.Code

Error codes for the CallKit errors.

```
enum Code
```

## Topics

### Constants

[`case invalidArgument`](/documentation/CallKit/CXError/Code/invalidArgument)

The argument is invalid.

[`case unentitled`](/documentation/CallKit/CXError/Code/unentitled)

The caller doesn’t have the correct entitlement.

[`case unknownError`](/documentation/CallKit/CXError/Code/unknownError)

An unknown error occurred.

### Enumeration Cases

[`case missingVoIPBackgroundMode`](/documentation/CallKit/CXError/Code/missingVoIPBackgroundMode)

### Initializers

[`init?(rawValue: Int)`](/documentation/CallKit/CXError/Code/init(rawValue:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)