---
title: "init(domain:error:)"
framework: Core Telephony
role: symbol
role_heading: Initializer
platforms: [iOS 4.0+, iPadOS 4.0+, Mac Catalyst 14.0+, macOS 10.10+]
path: "coretelephony/cterror/init(domain:error:)"
---

# init(domain:error:)

Creates a Core Telephony error instance with the given values.

## Declaration

```swift
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.
