---
title: "init(_:)"
framework: avsystemrouting
role: symbol
role_heading: Initializer
path: "avsystemrouting/avsystemroutingerror-7miya/init(_:)"
---

# init(_:)

Creates an error with the specified error code.

## Declaration

```swift
init(_ code: AVSystemRoutingError.Code)
```

## Parameters

- `code`: The error code for this error.
