error.mjs 459 B

123456789101112131415161718
  1. import { isString } from '@vue/shared';
  2. class ElementPlusError extends Error {
  3. constructor(m) {
  4. super(m);
  5. this.name = "ElementPlusError";
  6. }
  7. }
  8. function throwError(scope, m) {
  9. throw new ElementPlusError(`[${scope}] ${m}`);
  10. }
  11. function debugWarn(scope, message) {
  12. const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
  13. console.warn(error);
  14. }
  15. export { debugWarn, throwError };
  16. //# sourceMappingURL=error.mjs.map