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:2class PluginError extends ErrorFailure attributed to a source registration and lifecycle stage or operation.
Constructors
constructoroverride
constructor(
pluginId: string,
operation: string,
cause: unknown,
)Create an attributed error.
Parameters
| Name | Type | Description |
|---|---|---|
| pluginId | string | Responsible registration. |
| operation | string | Lifecycle stage or operation name. |
| cause | unknown | Original failure. |
Properties
pluginIdreadonly
readonly pluginId: stringResponsible source registration.
operationreadonly
readonly operation: stringFailed lifecycle stage or operation.