---
title: error
framework: testing
role: symbol
role_heading: Instance Property
path: testing/issue/error
---

# error

The error which was associated with this issue, if any.

## Declaration

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

## Discussion

Discussion The value of this property is non-nil when kind is Issue.Kind.errorCaught(_:).
