---
title: ICReturnConnectionError.Code
framework: ImageCaptureCore
role: symbol
role_heading: Enumeration
path: imagecapturecore/icreturnconnectionerror/code
---

# ICReturnConnectionError.Code

## Declaration

```swift
enum Code
```

## Topics

### Error Cases

- [ICReturnConnectionError.Code.closedSessionSuddenly](imagecapturecore/icreturnconnectionerror/code/closedsessionsuddenly.md)
- [ICReturnConnectionError.Code.driverExited](imagecapturecore/icreturnconnectionerror/code/driverexited.md)
- [ICReturnConnectionError.Code.ejectedSuddenly](imagecapturecore/icreturnconnectionerror/code/ejectedsuddenly.md)
- [ICReturnConnectionError.Code.ejectFailed](imagecapturecore/icreturnconnectionerror/code/ejectfailed.md)
- [ICReturnConnectionError.Code.failedToOpen](imagecapturecore/icreturnconnectionerror/code/failedtoopen.md)
- [ICReturnConnectionError.Code.failedToOpenDevice](imagecapturecore/icreturnconnectionerror/code/failedtoopendevice.md)
- [ICReturnConnectionError.Code.sessionAlreadyOpen](imagecapturecore/icreturnconnectionerror/code/sessionalreadyopen.md)
- [ICReturnConnectionError.Code.closedSessionSuddenly](imagecapturecore/icreturnconnectionerror/code/closedsessionsuddenly.md)
- [ICReturnConnectionError.Code.driverExited](imagecapturecore/icreturnconnectionerror/code/driverexited.md)
- [ICReturnConnectionError.Code.ejectedSuddenly](imagecapturecore/icreturnconnectionerror/code/ejectedsuddenly.md)
- [ICReturnConnectionError.Code.ejectFailed](imagecapturecore/icreturnconnectionerror/code/ejectfailed.md)
- [ICReturnConnectionError.Code.failedToOpen](imagecapturecore/icreturnconnectionerror/code/failedtoopen.md)
- [ICReturnConnectionError.Code.failedToOpenDevice](imagecapturecore/icreturnconnectionerror/code/failedtoopendevice.md)
- [ICReturnConnectionError.Code.sessionAlreadyOpen](imagecapturecore/icreturnconnectionerror/code/sessionalreadyopen.md)

### Enumeration Cases

- [ICReturnConnectionError.Code.notAuthorizedToOpenDevice](imagecapturecore/icreturnconnectionerror/code/notauthorizedtoopendevice.md)

### Initializers

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

- [closedSessionSuddenly](imagecapturecore/icreturnconnectionerror/closedsessionsuddenly.md)
- [driverExited](imagecapturecore/icreturnconnectionerror/driverexited.md)
- [ejectFailed](imagecapturecore/icreturnconnectionerror/ejectfailed.md)
- [ejectedSuddenly](imagecapturecore/icreturnconnectionerror/ejectedsuddenly.md)
- [failedToOpen](imagecapturecore/icreturnconnectionerror/failedtoopen.md)
- [failedToOpenDevice](imagecapturecore/icreturnconnectionerror/failedtoopendevice.md)
- [sessionAlreadyOpen](imagecapturecore/icreturnconnectionerror/sessionalreadyopen.md)
