connection-error.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. var __create = Object.create;
  2. var __defProp = Object.defineProperty;
  3. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  4. var __getOwnPropNames = Object.getOwnPropertyNames;
  5. var __getProtoOf = Object.getPrototypeOf;
  6. var __hasOwnProp = Object.prototype.hasOwnProperty;
  7. var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  8. var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
  9. var __export = (target, all) => {
  10. __markAsModule(target);
  11. for (var name in all)
  12. __defProp(target, name, { get: all[name], enumerable: true });
  13. };
  14. var __reExport = (target, module2, desc) => {
  15. if (module2 && typeof module2 === "object" || typeof module2 === "function") {
  16. for (let key of __getOwnPropNames(module2))
  17. if (!__hasOwnProp.call(target, key) && key !== "default")
  18. __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
  19. }
  20. return target;
  21. };
  22. var __toModule = (module2) => {
  23. return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
  24. };
  25. var __publicField = (obj, key, value) => {
  26. __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
  27. return value;
  28. };
  29. __export(exports, {
  30. default: () => connection_error_default
  31. });
  32. var import_base_error = __toModule(require("./base-error"));
  33. class ConnectionError extends import_base_error.default {
  34. constructor(parent) {
  35. super(parent ? parent.message : "");
  36. __publicField(this, "parent");
  37. __publicField(this, "original");
  38. this.name = "SequelizeConnectionError";
  39. this.parent = parent;
  40. this.original = parent;
  41. }
  42. }
  43. var connection_error_default = ConnectionError;
  44. //# sourceMappingURL=connection-error.js.map