Discord Player

PluginError

Failure attributed to a source registration and lifecycle stage or operation.

You are reading the v8 docsDev
ClassTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/plugins/plugin-error.ts:2
class PluginError extends Error

Failure attributed to a source registration and lifecycle stage or operation.

Constructors

constructoroverride

constructor(
  pluginId: string,
  operation: string,
  cause: unknown,
)

Create an attributed error.

Parameters

NameTypeDescription
pluginIdstring

Responsible registration.

operationstring

Lifecycle stage or operation name.

causeunknown

Original failure.

Properties

pluginIdreadonly

readonly pluginId: string

Responsible source registration.

operationreadonly

readonly operation: string

Failed lifecycle stage or operation.

On this page