Error

data class Error(val code: PlayerErrorCode, val message: String, val data: Any? = null) : PlayerEvent, ErrorEvent

Emitted when a player error occurred.

Constructors

Link copied to clipboard
constructor(code: PlayerErrorCode, message: String, data: Any? = null)

Properties

Link copied to clipboard
open override val code: PlayerErrorCode

The error code used to identify the player error.

Link copied to clipboard
@Transient
open override val data: Any? = null

Potential additional data.

Link copied to clipboard
open override val message: String

The error message to explain the reason for the player error.