Files
prop-data-guard/frontend/node_modules/element-plus/es/utils/error.mjs
T
2026-04-22 17:07:33 +08:00

22 lines
517 B
JavaScript

import { isString } from "./types.mjs";
//#region ../../packages/utils/error.ts
var ElementPlusError = class extends Error {
constructor(m) {
super(m);
this.name = "ElementPlusError";
}
};
function throwError(scope, m) {
throw new ElementPlusError(`[${scope}] ${m}`);
}
function debugWarn(scope, message) {
{
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
console.warn(error);
}
}
//#endregion
export { debugWarn, throwError };
//# sourceMappingURL=error.mjs.map