# SnapshotApplyConflictException

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/snapshots/Snapshot.kt+class:androidx.compose.runtime.snapshots.SnapshotApplyConflictException) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  class SnapshotApplyConflictException : Exception
  ```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |||
|   | ↳ | [kotlin.Exception](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-exception/index.html) ||
|   |   | ↳ | [androidx.compose.runtime.snapshots.SnapshotApplyConflictException](https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyConflictException) |

*** ** * ** ***

An exception that is thrown when `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult#check()` is called on a result of a `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/MutableSnapshot#apply()` that fails to apply.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyConflictException#SnapshotApplyConflictException(androidx.compose.runtime.snapshots.Snapshot)(snapshot: https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/Snapshot)` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/Snapshot` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyConflictException#snapshot()` | Cmn |

| ### Inherited functions |
|---|
| From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `@https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.experimental/-experimental-native-api/index.html https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-stack-trace.html()` | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/to-string.html()` | Cmn | |

| ### Inherited properties |
|---|
| From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |---|---|---| | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html` | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/message.html` | Cmn | |

## Public constructors

### SnapshotApplyConflictException

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0)

```
SnapshotApplyConflictException(snapshot: Snapshot)
```

## Public properties

### snapshot

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0)

```
val snapshot: Snapshot
```