# ThrowingRunnable

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/util/ThrowingRunnable.java+class:androidx.media3.common.util.ThrowingRunnable)

*** ** * ** ***


```
@UnstableApi
@FunctionalInterface
public interface ThrowingRunnable<E extends Exception>
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/java/lang/Runnable.html`-like interface that allows throwing checked exceptions.

| Parameters |
|---|---|
| `<E extends https://developer.android.com/reference/java/lang/Exception.html>` | The type of exception that the operation may throw. |

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/common/util/ThrowingRunnable#run()()` Runs the operation. |

## Public methods

### run

```
abstract void run()
```

Runs the operation.

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/util/ThrowingRunnable` |   |