<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreTelephony",
  "identifier" : "/documentation/CoreTelephony/CTError/init(domain:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Telephony"
    ],
    "preciseIdentifier" : "s:So7CTErrora6domain5errorABs5Int32V_AFtcfc"
  },
  "title" : "init(domain:error:)"
}
-->

# init(domain:error:)

Creates a Core Telephony error instance with the given values.

```
init(domain: Int32, error: Int32)
```

## Parameters

`domain`

The domain of the error. See Error Domains for possible values of this parameter.

`error`

The code of the error.

---

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)