MultiLoader-Template/node_modules/@commitlint/load/lib/utils/plugin-errors.js
3944Realms 8a825e0c9b build: 可使用的构建模板
修改了脚本,使其可以推给Maven仓库\
2026-03-09 14:44:02 +08:00

21 lines
764 B
JavaScript

export class WhitespacePluginError extends Error {
__proto__ = Error;
messageTemplate = "whitespace-found";
messageData = {};
constructor(pluginName, data = {}) {
super(`Whitespace found in plugin name '${pluginName}'`);
this.messageData = data;
Object.setPrototypeOf(this, WhitespacePluginError.prototype);
}
}
export class MissingPluginError extends Error {
__proto__ = Error;
messageTemplate = "plugin-missing";
messageData;
constructor(pluginName, errorMessage = "", data = {}) {
super(`Failed to load plugin ${pluginName}: ${errorMessage}`);
this.messageData = data;
Object.setPrototypeOf(this, MissingPluginError.prototype);
}
}
//# sourceMappingURL=plugin-errors.js.map