UniErrorEvent

sealed class UniErrorEvent : Exception

UniErrorEvent wraps all error types in UniPlayer, including following errors:

BasicNetworkError The network errors like socket time out, no network ...etc.

ServerResponseError The error response from server.

PlayerError The errors from Exoplayer.

InternalError The error type that does not belong to any of the above error types.

UndefinedError The errors from server which are not defined in PaaS.

Inheritors

Types

Link copied to clipboard
data class BasicNetworkError(val type: BasicNetworkErrorType) : UniErrorEvent
Link copied to clipboard
data class InternalError(val type: InternalErrorType) : UniErrorEvent
Link copied to clipboard
data class PlayerError(val type: PlayerErrorType) : UniErrorEvent
Link copied to clipboard
data class ServerResponseError(val type: ServerResponseErrorType) : UniErrorEvent

Properties

Link copied to clipboard
val errorCode: Int
Link copied to clipboard
val errorType: String

Functions

Link copied to clipboard
fun getErrorMessage(context: Context): String
Link copied to clipboard