---
title: ICReturnPTPDeviceError.Code
framework: ImageCaptureCore
role: symbol
role_heading: Enumeration
path: imagecapturecore/icreturnptpdeviceerror/code
---

# ICReturnPTPDeviceError.Code

## Declaration

```swift
enum Code
```

## Topics

### Enumeration Cases

- [ICReturnPTPDeviceError.Code.failedToSendCommand](imagecapturecore/icreturnptpdeviceerror/code/failedtosendcommand.md)
- [ICReturnPTPDeviceError.Code.notAuthorizedToSendCommand](imagecapturecore/icreturnptpdeviceerror/code/notauthorizedtosendcommand.md)

### Initializers

- [init(rawValue:)](imagecapturecore/icreturnptpdeviceerror/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

### Error Codes

- [failedToSendCommand](imagecapturecore/icreturnptpdeviceerror/failedtosendcommand.md)
