---
title: "PointerEventTimeoutCancellationException"
description: "An exception thrown from [AwaitPointerEventScope.withTimeout] when the execution time of the
coroutine is too long."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
expect class PointerEventTimeoutCancellationException(time: Long) : CancellationException
```


An exception thrown from `AwaitPointerEventScope.withTimeout` when the execution time of the
coroutine is too long.


<div class='sourceset sourceset-jvmAndAndroid'>JvmAndAndroid</div>


```kotlin
actual class PointerEventTimeoutCancellationException actual constructor(time: Long) :
    CancellationException("Timed out waiting for $time ms")
```


