<!--
{
  "availability" : [
    "iOS: 17.0.0 - 27.0.0",
    "iPadOS: 17.0.0 - 27.0.0",
    "macCatalyst: 17.0.0 - 27.0.0",
    "macOS: 14.0.0 - 27.0.0",
    "tvOS: 17.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSampleBufferVideoRenderer/error",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSampleBufferVideoRenderer(py)error"
  },
  "title" : "error"
}
-->

# error

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

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

## Discussion

This value is `nil` by default. It only contains a valid error object when the [`status`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/status) value is [`AVQueuedSampleBufferRenderingStatus.failed`](/documentation/AVFoundation/AVQueuedSampleBufferRenderingStatus/failed).

---

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)