Files
claude-relay-service/web/admin-spa/node_modules/element-plus/es/utils/error.mjs
2025-08-06 02:24:54 +00:00

21 lines
514 B
JavaScript

import { isString } from '@vue/shared';
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") {
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
console.warn(error);
}
}
export { debugWarn, throwError };
//# sourceMappingURL=error.mjs.map