# DoorLockTrait.LockOperationError

# DoorLockTrait.LockOperationError


```
interface DoorLockTrait.LockOperationError : ClusterStruct
```

<br />

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

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLock.LockOperationErrorEvent` |   |

*** ** * ** ***

Indicates that a lock operation failed.

## 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/DoorLockTrait.LockOperationError#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/DoorLockTrait.LockOperationError#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/DoorLockTrait.CredentialStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationError#credentials()` The credentials used in attempting the lock operation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationError#fabricIndex()` The fabric on which the lock operation was attempted. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationTypeEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationError#lockOperationType()` The type of the lock operation that failed. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.OperationErrorEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationError#operationError()` The lock operation error triggered when the operation failed. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.OperationSourceEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationError#operationSource()` The source of the lock operation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationError#sourceNode()` The node that attempted the lock operation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.LockOperationError#userIndex()` The user who attempted the lock operation. |

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

### credentials

```
val credentials: List<DoorLockTrait.CredentialStruct>?
```

The credentials used in attempting the lock operation.

### fabricIndex

```
val fabricIndex: UByte?
```

The fabric on which the lock operation was attempted.

### lockOperationType

```
val lockOperationType: DoorLockTrait.LockOperationTypeEnum?
```

The type of the lock operation that failed.

### operationError

```
val operationError: DoorLockTrait.OperationErrorEnum?
```

The lock operation error triggered when the operation failed.

### operationSource

```
val operationSource: DoorLockTrait.OperationSourceEnum?
```

The source of the lock operation.

### sourceNode

```
val sourceNode: ULong?
```

The node that attempted the lock operation.

### userIndex

```
val userIndex: UShort?
```

The user who attempted the lock operation.