docs/doc/reference/com/google/android/exoplayer2/upstream/LoaderErrorThrower.html
Package com.google.android.exoplayer2.upstream
Loader, LoaderErrorThrower.Placeholder[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceLoaderErrorThrower
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Conditionally throws errors affecting a Loader.
Nested Classes | Modifier and Type | Interface | Description |
| --- | --- | --- |
| static class | LoaderErrorThrower.Placeholder |
Deprecated.
A LoaderErrorThrower that never throws.
|
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | maybeThrowError() |
Deprecated.
Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loader.Loadable has incurred a number of errors greater than the Loaders default minimum number of retries.
|
| void | maybeThrowError(int minRetryCount) |
Deprecated.
Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loader.Loadable has incurred a number of errors greater than the specified minimum number of retries.
|
-
void maybeThrowError()
throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")
Deprecated.
Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loader.Loadable has incurred a number of errors greater than the Loaders default minimum number of retries. Else does nothing.
Throws:IOException - The error.
-
void maybeThrowError(int minRetryCount)
throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")
Deprecated.
Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loader.Loadable has incurred a number of errors greater than the specified minimum number of retries. Else does nothing.
Parameters:minRetryCount - A minimum retry count that must be exceeded for a non-fatal error to be thrown. Should be non-negative.Throws:IOException - The error.