<!--
{
  "documentType" : "article",
  "framework" : "PushToTalk",
  "identifier" : "/documentation/PushToTalk/PTChannelError-error-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error constants"
}
-->

# Error constants

Error codes for channel operations.

## Topics

### Constants

[`static var unknown: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/unknown)

A channel error that indicates an unknown error.

[`static var appNotForeground: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/appNotForeground)

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

[`static var channelNotFound: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/channelNotFound)

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

[`static var channelLimitReached: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/channelLimitReached)

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

[`static var callActive: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/callActive)

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

[`static var transmissionInProgress: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/transmissionInProgress)

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

[`static var transmissionNotFound: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/transmissionNotFound)

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

[`static var deviceManagementRestriction: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/deviceManagementRestriction)

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

[`static var screenTimeRestriction: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/screenTimeRestriction)

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

[`static var transmissionNotAllowed: PTChannelError.Code`](/documentation/PushToTalk/PTChannelError-swift.struct/transmissionNotAllowed)

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



---

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)