---
title: "WAError.error(_:)"
framework: wifiaware
role: symbol
role_heading: Case
path: "wifiaware/waerror/error(_:)"
---

# WAError.error(_:)

A general error.

## Declaration

```swift
case error(WAError.ErrorDetails)
```

## See Also

### Checking for general errors

- [WAError.ErrorDetails](wifiaware/waerror/errordetails.md)
