<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PushToTalk",
  "identifier" : "/documentation/PushToTalk/PTChannelError-swift.struct/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Push to Talk"
    ],
    "preciseIdentifier" : "c:@E@PTChannelError"
  },
  "title" : "PTChannelError.Code"
}
-->

# PTChannelError.Code

Error codes for channel operations.

```
enum Code
```

## Topics

### Error codes

[`case unknown`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/unknown)

A channel error that indicates an unknown error.

[`case appNotForeground`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/appNotForeground)

A channel error that indicates the operation failed because the app isn’t in the foreground.

[`case channelNotFound`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/channelNotFound)

A channel error that indicates the system can’t perform the action because there’s no active channel with the UUID you specify.

[`case channelLimitReached`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/channelLimitReached)

A channel error that indicates you reached the maximum of one active channel at a time for the entire device.

[`case callActive`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/callActive)

A channel error that indicates there’s an active call that prevents the channel action.

[`case transmissionInProgress`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/transmissionInProgress)

A channel error that indicates a transmission is already in progress.

[`case transmissionNotFound`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/transmissionNotFound)

A channel error that indicates there’s no transmission to stop.

[`case deviceManagementRestriction`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/deviceManagementRestriction)

A channel error that indicates a device-management policy or profile forbids joining the channel.

[`case screenTimeRestriction`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/screenTimeRestriction)

A channel error that indicates a Screen Time restriction prevents the action.

[`case transmissionNotAllowed`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/transmissionNotAllowed)

A channel error that indicates the current transmission mode of the channel doesn’t allow the mode you specify.

### Initializers

[`init?(rawValue: Int)`](/documentation/PushToTalk/PTChannelError-swift.struct/Code/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)