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

# ARKitSession.Error

An error that might occur when running data providers on an ARKit session.

```
struct Error
```

## Topics

### Inspecting ARKit errors

[`let dataProvider: (any DataProvider)?`](/documentation/ARKit/ARKitSession/Error/dataProvider)

The data provider that causes an error in a session, if any.

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

The error code for an ARKit session error.

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

The error codes for ARKit sessions.

[`let errorDescription: String?`](/documentation/ARKit/ARKitSession/Error/errorDescription)

A localized message that describes the error that occurred.

### Providing recovery suggestions

[`let recoverySuggestion: String?`](/documentation/ARKit/ARKitSession/Error/recoverySuggestion)

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

[`let failureReason: String?`](/documentation/ARKit/ARKitSession/Error/failureReason)

A localized message that describes why the error occurred.

### Instance Properties

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

A textual representation of this error.

## Relationships

### Conforms To

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

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

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

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

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

---

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)