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

# error

An error that describes the reason looping failed.

## Declaration

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

## Discussion

Discussion The value of this property is nil unless the looper’s status changes to AVPlayerLooper.Status.failed. If this occurs, this property value contains an error object that provides the details of the error that prevented looping.
