<!--
{
  "availability" : [
    "macOS: 27.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpatialPreview",
  "identifier" : "/documentation/SpatialPreview/SpatialPreviewSessionError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Spatial Preview"
    ],
    "preciseIdentifier" : "s:14SpatialPreview0aB12SessionErrorO"
  },
  "title" : "SpatialPreviewSessionError"
}
-->

# SpatialPreviewSessionError

```
enum SpatialPreviewSessionError
```

## Topics

### Enumeration Cases

[`case invalidSpatialPreviewEndpoint`](/documentation/SpatialPreview/SpatialPreviewSessionError/invalidSpatialPreviewEndpoint)

Use of an invalid spatial preview device

[`case invalidated`](/documentation/SpatialPreview/SpatialPreviewSessionError/invalidated)

[`case tooManySessions`](/documentation/SpatialPreview/SpatialPreviewSessionError/tooManySessions)

Reached a maximum number of sessions for the receiving device

## Relationships

### Conforms To

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

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

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

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

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

---

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)