---
title: "writeAttributeACErrorCode(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthermostat/writeattributeacerrorcode(withvalue:completionhandler:)"
---

# writeAttributeACErrorCode(withValue:completionHandler:)

## Declaration

```swift
func writeAttributeACErrorCode(withValue value: NSNumber, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeACErrorCode(withValue value: NSNumber) async throws
```
