<!--
{
  "availability" : [
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/AccessoryTrackingProvider/Error",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit25AccessoryTrackingProviderC5ErrorV"
  },
  "title" : "AccessoryTrackingProvider.Error"
}
-->

# AccessoryTrackingProvider.Error

An accessory tracking error.

```
struct Error
```

## Topics

### Instance Properties

[`var code: AccessoryTrackingProvider.Error.Code`](/documentation/ARKit/AccessoryTrackingProvider/Error/code-swift.property)

The error code.

[`var description: String`](/documentation/ARKit/AccessoryTrackingProvider/Error/description)

A textual representation of this error.

[`var errorDescription: String?`](/documentation/ARKit/AccessoryTrackingProvider/Error/errorDescription)

A localized message describing what error occurred.

[`var failureReason: String?`](/documentation/ARKit/AccessoryTrackingProvider/Error/failureReason)

A localized message describing the reason for the failure.

[`var recoverySuggestion: String?`](/documentation/ARKit/AccessoryTrackingProvider/Error/recoverySuggestion)

A localized message describing how one might recover from the failure.

[`let source: Accessory.Source?`](/documentation/ARKit/AccessoryTrackingProvider/Error/source)

Source for an accessory if creating it failed.

### Enumerations

[`enum Code`](/documentation/ARKit/AccessoryTrackingProvider/Error/Code-swift.enum)

Enumeration of all error codes.

## Relationships

### Conforms To

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

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

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

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

[`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)