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

# WorldTrackingProvider.Error

An error that can occur during a world-tracking session.

```
struct Error
```

## Topics

### Inspecting world-tracking errors

[`let anchor: WorldAnchor?`](/documentation/ARKit/WorldTrackingProvider/Error/anchor)

The anchor that caused a world-tracking error.

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

The error code.

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

The error codes for errors that world tracking providers throw.

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

A localized message that describes the error that occurred.

### Providing recovery suggestions

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

A localized message that describes how someone might recover from the error.

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

A localized message that describes why the error occurred.

### Instance Properties

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

A textual description of the error that occurred.

## 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)