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

# CameraRegionProvider.Error

A camera region error.

```
struct Error
```

## Topics

### Instance Properties

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

The error code.

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

The data provider which encountered an error (if any).

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

A textual representation of this error.

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

A localized message describing what error occurred.

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

A localized message describing the reason for the failure.

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

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

### Enumerations

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

Enumeration of all possible camera region error codes.

## Relationships

### Conforms To

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

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

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

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

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

---

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)