# GestureCancellationException

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/gestures/ForEachGesture.kt+class:androidx.compose.foundation.gestures.GestureCancellationException) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  class GestureCancellationException : CancellationException
  ```

|---|---|---|---|---|---|---|
| [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) |||||
|   |   | ↳ | [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.compose.foundation.gestures.GestureCancellationException](https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/GestureCancellationException) |

*** ** * ** ***

A gesture was canceled and cannot continue, likely because another gesture has taken over the pointer input stream.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/GestureCancellationException#GestureCancellationException(kotlin.String)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` | Cmn |

| ### Inherited functions |
|---|
| From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |---|---|---| | `open external 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 external https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html` | Cmn | | `open external 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

### GestureCancellationException

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

```
GestureCancellationException(message: String? = null)
```