<!--
{
  "availability" : [
    "iOS: 14.3.0 -",
    "iPadOS: 14.3.0 -",
    "macCatalyst: 14.3.0 -",
    "macOS: 11.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AdServices",
  "identifier" : "/documentation/AdServices/AAAttributionError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AdServices"
    ],
    "preciseIdentifier" : "s:SC22AAAttributionErrorCodeLeV"
  },
  "title" : "AAAttributionError"
}
-->

# AAAttributionError

The error code that the parent class issues.

```
struct AAAttributionError
```

## Topics

### Error domain

[`static var errorDomain: String`](/documentation/AdServices/AAAttributionError/errorDomain)

The error domain the framework uses when returning errors.

### Error codes

[`static var internalError: AAAttributionError.Code`](/documentation/AdServices/AAAttributionError/internalError)

The server is unable to provide a token because of an internal error.

[`static var networkError: AAAttributionError.Code`](/documentation/AdServices/AAAttributionError/networkError)

The server is unable to provide a token because the internet isn’t available.

[`static var platformNotSupported: AAAttributionError.Code`](/documentation/AdServices/AAAttributionError/platformNotSupported)

The server is unable to provide a token because of an unsupported operating system.

[`enum Code`](/documentation/AdServices/AAAttributionError/Code)

The error code that the parent class issues.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)