Back to Exoplayer

ErrorMessageProvider (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/ErrorMessageProvider.html

latest2.1 KB
Original Source

Package com.google.android.exoplayer2.util

Interface ErrorMessageProvider<T extends Throwable>


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceErrorMessageProvider\<T extends [Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")\>

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.

Converts throwables into error codes and user readable error messages.

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | Pair<Integer,​String> | getErrorMessage​(T throwable) | Deprecated.

Returns a pair consisting of an error code and a user readable error message for the given throwable. |

Method Detail

- 

getErrorMessage

[Pair](https://developer.android.com/reference/android/util/Pair.html "class or interface in android.util")<[Integer](https://developer.android.com/reference/java/lang/Integer.html?is-external=true "class or interface in java.lang"),​[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")> getErrorMessage​([T](ErrorMessageProvider.html "type parameter in ErrorMessageProvider")throwable)

Deprecated.

Returns a pair consisting of an error code and a user readable error message for the given throwable. Parameters:throwable - The throwable for which an error code and message should be generated.Returns:A pair consisting of an error code and a user readable error message.