1234567891011121314151617181920 |
- 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
|