---
title: DDError.Code
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Enumeration
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, visionOS 1.0+]
path: devicediscoveryextension/dderror/code
---

# DDError.Code

Codes that identify errors that can occur during the framework’s use.

## Declaration

```swift
enum Code
```

## Overview

Overview The system returns one of these codes to describe a completed operation by invoking a DDErrorHandler that the client provides.

## Topics

### Errors

- [DDError.Code.success](devicediscoveryextension/dderror/code/success.md)
- [DDError.Code.unknown](devicediscoveryextension/dderror/code/unknown.md)
- [DDError.Code.badParameter](devicediscoveryextension/dderror/code/badparameter.md)
- [DDError.Code.unsupported](devicediscoveryextension/dderror/code/unsupported.md)
- [DDError.Code.timeout](devicediscoveryextension/dderror/code/timeout.md)
- [DDError.Code.internal](devicediscoveryextension/dderror/code/internal.md)
- [DDError.Code.missingEntitlement](devicediscoveryextension/dderror/code/missingentitlement.md)
- [DDError.Code.permission](devicediscoveryextension/dderror/code/permission.md)
- [DDError.Code.next](devicediscoveryextension/dderror/code/next.md)

### Initializers

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

### Errors

- [DDError](devicediscoveryextension/dderror.md)
- [DDErrorHandler](devicediscoveryextension/dderrorhandler.md)
- [DDErrorOutType](devicediscoveryextension/dderrorouttype.md)
- [DDErrorDomain](devicediscoveryextension/dderrordomain.md)
