UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

24 lines (22 loc) 658 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TypeORMError = void 0; class TypeORMError extends Error { get name() { return this.constructor.name; } constructor(message) { super(message); // restore prototype chain because the base `Error` type // will break the prototype chain a little if (Object.setPrototypeOf) { Object.setPrototypeOf(this, new.target.prototype); } else { ; this.__proto__ = new.target.prototype; } } } exports.TypeORMError = TypeORMError; //# sourceMappingURL=TypeORMError.js.map