---
title: "ObjectCaptureSession.CaptureState.failed(_:)"
framework: realitykit
role: symbol
role_heading: Case
path: "realitykit/objectcapturesession/capturestate/failed(_:)"
---

# ObjectCaptureSession.CaptureState.failed(_:)

There was an unrecoverable error and the session is now invalid and needs to be torn down.

## Declaration

```swift
case failed(any Error)
```
