Interface ErrorMessageProvider<T extends Throwable>


  • @Deprecated
    public interface ErrorMessageProvider<T extends Throwable>
    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 Detail

      • getErrorMessage

        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.
        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.