<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVSystemRouting",
  "identifier" : "/documentation/AVSystemRouting/AVSystemRoutingError-19zkj/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AVSystemRouting"
    ],
    "preciseIdentifier" : "c:@E@AVSystemRoutingError"
  },
  "title" : "AVSystemRoutingError.Code"
}
-->

# AVSystemRoutingError.Code

An error that an AVSystemRouting operation throws when it fails.

```
enum Code
```

## Topics

### Enumeration Cases

[`case connectionFailed`](/documentation/AVSystemRouting/AVSystemRoutingError-19zkj/Code/connectionFailed)

A connection failure with the remote application.

### Initializers

[`init?(rawValue: Int)`](/documentation/AVSystemRouting/AVSystemRoutingError-19zkj/Code/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)