Skip to content

Class: PlayerError ​

The single error type of the player module. element names the element that raised it, when there is one.

Extends ​

  • Error

Constructors ​

Constructor ​

new PlayerError(code, message, options?): PlayerError

Parameters ​

code ​

PlayerErrorCode

message ​

string

options? ​
cause? ​

unknown

element? ​

string

Returns ​

PlayerError

Overrides ​

Error.constructor

Properties ​

category ​

readonly category: PlayerErrorCategory


code ​

readonly code: PlayerErrorCode


element? ​

readonly optional element?: string