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

# error

The error that caused the failure.

## Declaration

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

## Discussion

Discussion The value of this property is an NSError that describes what caused the display layer to no longer be able to enqueue sample buffers. If the status is not AVQueuedSampleBufferRenderingStatus.failed, the value of this property is nil.
