# LifecycleDestroyedException

Artifact: [androidx.lifecycle:lifecycle-runtime](https://developer.android.com/jetpack/androidx/releases/lifecycle) [View Source](https://cs.android.com/search?q=file:androidx/lifecycle/WithLifecycleState.kt+class:androidx.lifecycle.LifecycleDestroyedException) Added in [2.8.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.0)

*** ** * ** ***


```
public final class LifecycleDestroyedException extends CancellationException
```

<br />

|---|---|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||||
| ↳ | [kotlin.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) ||||||
|   | ↳ | [kotlin.Exception](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-exception/index.html) |||||
|   |   | ↳ | [kotlin.RuntimeException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-runtime-exception/index.html) ||||
|   |   |   | ↳ | [kotlin.IllegalStateException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-state-exception/index.html) |||
|   |   |   |   | ↳ | [kotlin.coroutines.cancellation.CancellationException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines.cancellation/-cancellation-exception/index.html) ||
|   |   |   |   |   | ↳ | [androidx.lifecycle.LifecycleDestroyedException](https://developer.android.com/reference/androidx/lifecycle/LifecycleDestroyedException) |

*** ** * ** ***

A `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-cancellation-exception/index.html` that indicates that the `https://developer.android.com/reference/androidx/lifecycle/Lifecycle` associated with an operation reached the `https://developer.android.com/reference/androidx/lifecycle/Lifecycle.State#DESTROYED` state before the operation could complete.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/lifecycle/LifecycleDestroyedException#LifecycleDestroyedException()()` |

### Inherited methods

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#getCause()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#getMessage()()` `final @https://developer.android.com/reference/androidx/annotation/NonNull String[]` `@https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.experimental/-experimental-native-api/index.html
https://developer.android.com/reference/java/lang/Throwable.html#getStackTrace()()` `final void` `https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace()()` `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#toString()()`

## Public constructors

### LifecycleDestroyedException

Added in [2.8.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.0)

```
public LifecycleDestroyedException()
```