UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

20 lines (18 loc) 926 B
import { __extends } from "tslib"; /** * Thrown when consumer tries to recreate connection with the same name, but previous connection was not closed yet. */ var AlreadyHasActiveConnectionError = /** @class */ (function (_super) { __extends(AlreadyHasActiveConnectionError, _super); function AlreadyHasActiveConnectionError(connectionName) { var _this = _super.call(this) || this; _this.name = "AlreadyHasActiveConnectionError"; Object.setPrototypeOf(_this, AlreadyHasActiveConnectionError.prototype); _this.message = "Cannot create a new connection named \"" + connectionName + "\", because connection with such name " + "already exist and it now has an active connection session."; return _this; } return AlreadyHasActiveConnectionError; }(Error)); export { AlreadyHasActiveConnectionError }; //# sourceMappingURL=AlreadyHasActiveConnectionError.js.map