---
title: PTChannelError.Code
framework: pushtotalk
role: symbol
role_heading: Enumeration
path: pushtotalk/ptchannelerror-swift.struct/code
---

# PTChannelError.Code

Error codes for channel operations.

## Declaration

```swift
enum Code
```

## Mentioned in

Creating a Push to Talk app

## Topics

### Error codes

- [PTChannelError.Code.unknown](pushtotalk/ptchannelerror-swift.struct/code/unknown.md)
- [PTChannelError.Code.appNotForeground](pushtotalk/ptchannelerror-swift.struct/code/appnotforeground.md)
- [PTChannelError.Code.channelNotFound](pushtotalk/ptchannelerror-swift.struct/code/channelnotfound.md)
- [PTChannelError.Code.channelLimitReached](pushtotalk/ptchannelerror-swift.struct/code/channellimitreached.md)
- [PTChannelError.Code.callActive](pushtotalk/ptchannelerror-swift.struct/code/callactive.md)
- [PTChannelError.Code.transmissionInProgress](pushtotalk/ptchannelerror-swift.struct/code/transmissioninprogress.md)
- [PTChannelError.Code.transmissionNotFound](pushtotalk/ptchannelerror-swift.struct/code/transmissionnotfound.md)
- [PTChannelError.Code.deviceManagementRestriction](pushtotalk/ptchannelerror-swift.struct/code/devicemanagementrestriction.md)
- [PTChannelError.Code.screenTimeRestriction](pushtotalk/ptchannelerror-swift.struct/code/screentimerestriction.md)
- [PTChannelError.Code.transmissionNotAllowed](pushtotalk/ptchannelerror-swift.struct/code/transmissionnotallowed.md)

### Initializers

- [init(rawValue:)](pushtotalk/ptchannelerror-swift.struct/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Push to Talk errors

- [PTChannelError](pushtotalk/ptchannelerror-swift.struct.md)
- [PTInstantiationError](pushtotalk/ptinstantiationerror-swift.struct.md)
- [PTInstantiationError.Code](pushtotalk/ptinstantiationerror-swift.struct/code.md)
- [PTChannelErrorDomain](pushtotalk/ptchannelerrordomain.md)
- [PTInstantiationErrorDomain](pushtotalk/ptinstantiationerrordomain.md)
