# RvcOperationalStateTrait.OperationalError

# RvcOperationalStateTrait.OperationalError


```
interface RvcOperationalStateTrait.OperationalError : ClusterStruct
```

<br />

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

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

*** ** * ** ***

This event is generated when a reportable error condition is 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/RvcOperationalStateTrait.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/RvcOperationalStateTrait.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://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/RvcOperationalStateTrait.ErrorStateStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/RvcOperationalStateTrait.OperationalError#errorState()` An enumeration range or generally applicable values that indicate specific errors. |

## 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: RvcOperationalStateTrait.ErrorStateStruct?
```

An enumeration range or generally applicable values that indicate specific errors. The enumeration ranges for the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/RvcOperationalStateTrait.ErrorStateStruct#errorStateId()` field values are:

|---|---|---|
| `0x00` to `0x3F` | **GeneralErrors** | General errors. |
| `0x40` to `0x7F` | **DerivedClusterErrors** | Derived cluster-specific errors. |
| `0x80` to `0xBF` | **ManufacturerError** | Vendor-specific errors. |

The generally applicable `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/RvcOperationalStateTrait.ErrorStateStruct#errorStateId()` values are:

|---|---|---|
| `0x00` | **NoError** | When the device is not in an error state. |
| `0x01` | **UnableToStartOrResume** | When the device is unable to start or resume operation. |
| `0x02` | **UnableToCompleteOperation** | When the device is unable to complete the current operation. |
| `0x03` | **CommandInvalidInState** | When the device cannot process the command in its current state. |

<br />