---
title: ICReturnPTPDeviceError
framework: ImageCaptureCore
role: symbol
role_heading: Structure
path: imagecapturecore/icreturnptpdeviceerror
---

# ICReturnPTPDeviceError

A PTP device error returned from ImageCaptureCore.

## Declaration

```swift
struct ICReturnPTPDeviceError
```

## Topics

### Error Domain

- [ICErrorDomain](imagecapturecore/icerrordomain.md)

### Error Codes

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

### Type Properties

- [errorDomain](imagecapturecore/icreturnptpdeviceerror/errordomain.md)
- [notAuthorizedToSendCommand](imagecapturecore/icreturnptpdeviceerror/notauthorizedtosendcommand.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [ICReturn](imagecapturecore/icreturn.md)
- [ICLegacyReturn](imagecapturecore/iclegacyreturn.md)
- [ICReturnConnectionError](imagecapturecore/icreturnconnectionerror.md)
- [ICReturnDownloadError](imagecapturecore/icreturndownloaderror.md)
- [ICReturnMetadataError](imagecapturecore/icreturnmetadataerror.md)
- [ICReturnObjectError](imagecapturecore/icreturnobjecterror.md)
- [ICReturnThumbnailError](imagecapturecore/icreturnthumbnailerror.md)
