error.js 571 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var shared = require('@vue/shared');
  4. class ElementPlusError extends Error {
  5. constructor(m) {
  6. super(m);
  7. this.name = "ElementPlusError";
  8. }
  9. }
  10. function throwError(scope, m) {
  11. throw new ElementPlusError(`[${scope}] ${m}`);
  12. }
  13. function debugWarn(scope, message) {
  14. const error = shared.isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
  15. console.warn(error);
  16. }
  17. exports.debugWarn = debugWarn;
  18. exports.throwError = throwError;
  19. //# sourceMappingURL=error.js.map