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

# ObjectTrackingProvider.Error

Values that represent an object-tracking error.

```
struct Error
```

## Topics

### Describing an error

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

The error code.

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

The enumeration of object-tracking provider error codes.

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

A localized message that describes an error.

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

A localized message that describes the reason for the failure.

### Inspecting an error

[`let bundle: Bundle?`](/documentation/ARKit/ObjectTrackingProvider/Error/bundle)

The bundle for the model that failed to load, if the source was a bundle.

[`let name: String?`](/documentation/ARKit/ObjectTrackingProvider/Error/name)

The name of the model that failed to load, if the source was a bundle.

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

A localized message that describes how to recover from the failure.

[`let url: URL?`](/documentation/ARKit/ObjectTrackingProvider/Error/url)

The URL for the model that failed to load, if the source was a URL.

### Instance Properties

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

A textual representation of an error.

## Relationships

### Conforms To

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

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

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

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

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

---

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)