UNPKG

952 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when consumer tries to connect when he already connected.
6 */
7var CannotConnectAlreadyConnectedError = /** @class */ (function (_super) {
8 tslib_1.__extends(CannotConnectAlreadyConnectedError, _super);
9 function CannotConnectAlreadyConnectedError(connectionName) {
10 var _this = _super.call(this) || this;
11 _this.name = "CannotConnectAlreadyConnectedError";
12 Object.setPrototypeOf(_this, CannotConnectAlreadyConnectedError.prototype);
13 _this.message = "Cannot create a \"" + connectionName + "\" connection because connection to the database already established.";
14 return _this;
15 }
16 return CannotConnectAlreadyConnectedError;
17}(Error));
18exports.CannotConnectAlreadyConnectedError = CannotConnectAlreadyConnectedError;
19
20//# sourceMappingURL=CannotConnectAlreadyConnectedError.js.map