Files
dsProject/dsBase/WebRoot/html/cdn/es/utils/error.mjs
2025-08-14 15:45:08 +08:00

18 lines
422 B
JavaScript

class ElementPlusError extends Error {
constructor(m) {
super(m);
this.name = "ElementPlusError";
}
}
function throwError(scope, m) {
throw new ElementPlusError(`[${scope}] ${m}`);
}
function debugWarn(scope, message) {
if (process.env.NODE_ENV !== "production") {
console.warn(new ElementPlusError(`[${scope}] ${message}`));
}
}
export { debugWarn, throwError };
//# sourceMappingURL=error.mjs.map