error.js 649 B

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