DefaultErrorMessageProvider

@UnstableApi
class DefaultErrorMessageProvider : ErrorMessageProvider


Summary

Public constructors

Public functions

open Pair<IntString>

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

Public constructors

DefaultErrorMessageProvider

DefaultErrorMessageProvider(context: Context)

Public functions

getErrorMessage

open fun getErrorMessage(throwable: PlaybackException): Pair<IntString>

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

Parameters
throwable: PlaybackException

The throwable for which an error code and message should be generated.

Returns
Pair<IntString>

A pair consisting of an error code and a user readable error message.