<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryExtension",
  "identifier" : "/documentation/DeviceDiscoveryExtension/DDError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DeviceDiscoveryExtension"
    ],
    "preciseIdentifier" : "s:SC11DDErrorCodeLeV"
  },
  "title" : "DDError"
}
-->

# DDError

An error that the framework reports.

```
struct DDError
```

## Topics

### Inspecting error information

### Identifying an error cause

[`enum Code`](/documentation/DeviceDiscoveryExtension/DDError/Code)

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

[`static var success: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/success)

An error that indicates an operation succeeds.

[`static var unknown: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/unknown)

An error that indicates an uncategorized problem.

[`static var badParameter: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/badParameter)

An error that indicates the framework doesn’t support a parameter that the extension provides.

[`static var unsupported: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/unsupported)

An error that indicates an unsupported configuration.

[`static var timeout: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/timeout)

An error that indicates a timeout occurs.

[`static var `internal`: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/internal)

An error that indicates a problem of internal origin.

[`static var missingEntitlement: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/missingEntitlement)

An error that indicates that the app extension lacks a required entitlement.

[`static var permission: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/permission)

An error that indicates the app extension lacks necessary permissions.

[`static var next: DDError.Code`](/documentation/DeviceDiscoveryExtension/DDError/next)

An error the framework reserves for future use.

### Type Properties

[`static var errorDomain: String`](/documentation/DeviceDiscoveryExtension/DDError/errorDomain)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Error`](/documentation/Swift/Error)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)