# ActionsTrait.ActionFailed

# ActionsTrait.ActionFailed


```
interface ActionsTrait.ActionFailed : ClusterStruct
```

<br />

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

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Actions.ActionFailedEvent` |   |

*** ** * ** ***

Indicates that the action failed to complete as intended.

## 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/ActionsTrait.ActionFailed#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/ActionsTrait.ActionFailed#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/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.ActionFailed#actionId()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.ActionErrorEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.ActionFailed#error()` The reason for the action's failure. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.ActionFailed#invokeId()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.ActionStateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.ActionFailed#newState()` The state that the action was in at the time of the event. |

## 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

### actionId

```
val actionId: UShort?
```

### error

```
val error: ActionsTrait.ActionErrorEnum?
```

The reason for the action's failure.

### invokeId

```
val invokeId: UInt?
```

### newState

```
val newState: ActionsTrait.ActionStateEnum?
```

The state that the action was in at the time of the event.