# LoaderErrorThrower.Placeholder

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

*** ** * ** ***


```
public final class LoaderErrorThrower.Placeholder implements LoaderErrorThrower
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoaderErrorThrower` that never throws.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoaderErrorThrower.Placeholder#Placeholder()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoaderErrorThrower.Placeholder#maybeThrowError()()` Throws a fatal error, or a non-fatal error if loading is currently backed off and the current `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Loader.Loadable` has incurred a number of errors greater than the `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Loader`s default minimum number of retries. |
| `void` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoaderErrorThrower.Placeholder#maybeThrowError(int)(int minRetryCount)` Throws a fatal error, or a non-fatal error if loading is currently backed off and the current `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Loader.Loadable` has incurred a number of errors greater than the specified minimum number of retries. |

## Public constructors

### Placeholder

```
public Placeholder()
```

## Public methods

### maybeThrowError

```
public void maybeThrowError()
```

Throws a fatal error, or a non-fatal error if loading is currently backed off and the current `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Loader.Loadable` has incurred a number of errors greater than the `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Loader`s default minimum number of retries. Else does nothing.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/io/IOException.html` | The error. |

### maybeThrowError

```
public void maybeThrowError(int minRetryCount)
```

Throws a fatal error, or a non-fatal error if loading is currently backed off and the current `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Loader.Loadable` has incurred a number of errors greater than the specified minimum number of retries. Else does nothing.

| Parameters |
|---|---|
| `int minRetryCount` | A minimum retry count that must be exceeded for a non-fatal error to be thrown. Should be non-negative. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/io/IOException.html` | The error. |