UNPKG

typeorm

Version:

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

20 lines (18 loc) 520 B
export 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; } } } //# sourceMappingURL=TypeORMError.js.map