PluginLoadError
Defined in: packages/sdk/src/errors.ts:313
插件加载/安装失败。
pluginName
插件名(优先,便于日志聚合按插件维度统计)
message
人类可读错误描述
cause
原始错误(可选)
注意:参数顺序为 (pluginName, message, cause),与其他类的 (message, cause) 不同,
因为插件名是 PluginLoadError 的核心标识,放首位便于构造时一眼识别。
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PluginLoadError(
pluginName,message,cause?):PluginLoadError
Defined in: packages/sdk/src/errors.ts:315
Parameters
Section titled “Parameters”pluginName
Section titled “pluginName”string
message
Section titled “message”string
cause?
Section titled “cause?”unknown
Returns
Section titled “Returns”PluginLoadError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”
readonlycode:LokvisErrorCode
Defined in: packages/sdk/src/errors.ts:108
Inherited from
Section titled “Inherited from”context?
Section titled “context?”
readonlyoptionalcontext?:Readonly<Record<string,unknown>>
Defined in: packages/sdk/src/errors.ts:109
Inherited from
Section titled “Inherited from”pluginName
Section titled “pluginName”
readonlypluginName:string
Defined in: packages/sdk/src/errors.ts:314