---
title: error
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/sensoryfeedback/error
---

# error

Indicates that an error has occurred.

## Declaration

```swift
static let error: SensoryFeedback
```

## Discussion

Discussion Only plays feedback on iOS and watchOS.

## See Also

### Indicating the outcome of an operation

- [success](swiftui/sensoryfeedback/success.md)
- [warning](swiftui/sensoryfeedback/warning.md)
