Options
All
  • Public
  • Public/Protected
  • All
Menu

Available built-in error messages for PlayerError

Index

Variables

Const PlayerAlreadyLinked

PlayerAlreadyLinked: ErrorType = ...

Error when player is already linked

Const PlayerAlreadyPlaying

PlayerAlreadyPlaying: ErrorType = ...

Error when player is already playing

Const PlayerNotLinked

PlayerNotLinked: ErrorType = ...

Error when player is not linked

Const PlayerNotPlaying

PlayerNotPlaying: ErrorType = ...

Error when player is not playing

Const QueueEmpty

QueueEmpty: ErrorType = ...

Error when queue is empty while trying to start queue cycle

Functions

AtleastHave

  • AtleastHave(what: string, things: string[]): ErrorType
  • Error when value doesn't have any of the thing

    Parameters

    • what: string

      The value that must have the thing

    • things: string[]

      Some thing that must be on the value atleast one of it

    Returns ErrorType

    The error

CacheAlreadyExist

  • CacheAlreadyExist(identifier: string): ErrorType

CacheNotExist

  • CacheNotExist(identifier: string): ErrorType

Expecting

  • Expecting(expecting: string | string[], where: string, got: unknown): ErrorType
  • Error when value is different than expected

    Parameters

    • expecting: string | string[]

      THe expected value

    • where: string

      Where does the error take place

    • got: unknown

      The actual value

    Returns ErrorType

    The error

NotInteger

NotProvided

  • NotProvided(what: string, where: string): ErrorType
  • Error when key is not exist in an object

    Parameters

    • what: string

      The key that expected to exist in the object

    • where: string

      Where does the error take place

    Returns ErrorType

    The error

NotValidSourceType

  • NotValidSourceType(sourceType: number): ErrorType

Generated using TypeDoc