# ClosureControlTrait.OperationalError

# ClosureControlTrait.OperationalError


```
interface ClosureControlTrait.OperationalError : ClusterStruct
```

<br />

Known direct subclasses [ClosureControl.OperationalErrorEvent](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControl.OperationalErrorEvent)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControl.OperationalErrorEvent` |   |

*** ** * ** ***

A reportable error condition has been detected.

## Summary

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.OperationalError#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.OperationalError#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.ClosureErrorEnum>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.OperationalError#errorState()` A list of error states of the closure, based on `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.ClosureErrorEnum`. |

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### errorState

```
val errorState: List<ClosureControlTrait.ClosureErrorEnum>?
```

A list of error states of the closure, based on `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.ClosureErrorEnum`.