UNPKG

@sequelize/core

Version:

Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication a

46 lines (45 loc) 1.46 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var base_error_exports = {}; __export(base_error_exports, { BaseError: () => BaseError }); module.exports = __toCommonJS(base_error_exports); var import_deprecations = require("../utils/deprecations.js"); class BaseError extends Error { /** * @deprecated use {@link cause}. */ get parent() { (0, import_deprecations.useErrorCause)(); return this.cause; } /** * @deprecated use {@link cause}. */ get original() { (0, import_deprecations.useErrorCause)(); return this.cause; } constructor(message, options) { super(message, options); this.name = "SequelizeBaseError"; } } //# sourceMappingURL=base-error.js.map