ErrorDescription

data class ErrorDescription(val errorCode: Int, val errorMsg: String, val httpStatusCode: Int)

Describes an error that may occur during use of any library components like player, downloader, etc.

Constructors

Link copied to clipboard
constructor(errorCode: Int, errorMsg: String, httpStatusCode: Int)

Properties

Link copied to clipboard

One of error codes defined in ErrorCodes identifying the type of error.

Link copied to clipboard

A brief message describing the error.

Link copied to clipboard

Relevant http status code if the error was server related, -1 otherwise.

Functions

Link copied to clipboard

Customize error message displayed on the player view depending on the error code.

Link copied to clipboard
open override fun toString(): String