---
title: error
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avsamplebuffervideorenderer/error
---

# error

An object the describes the error that caused the rendering failure.

## Declaration

```swift
var error: (any Error)? { get }
```

## Discussion

Discussion This value is nil by default. It only contains a valid error object when the status value is AVQueuedSampleBufferRenderingStatus.failed.

## See Also

### Inspecting the status

- [status](avfoundation/avsamplebuffervideorenderer/status.md)
