UNPKG

1.04 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when consumer tries to recreate connection with the same name, but previous connection was not closed yet.
6 */
7var AlreadyHasActiveConnectionError = /** @class */ (function (_super) {
8 tslib_1.__extends(AlreadyHasActiveConnectionError, _super);
9 function AlreadyHasActiveConnectionError(connectionName) {
10 var _this = _super.call(this) || this;
11 _this.name = "AlreadyHasActiveConnectionError";
12 Object.setPrototypeOf(_this, AlreadyHasActiveConnectionError.prototype);
13 _this.message = "Cannot create a new connection named \"" + connectionName + "\", because connection with such name " +
14 "already exist and it now has an active connection session.";
15 return _this;
16 }
17 return AlreadyHasActiveConnectionError;
18}(Error));
19exports.AlreadyHasActiveConnectionError = AlreadyHasActiveConnectionError;
20
21//# sourceMappingURL=AlreadyHasActiveConnectionError.js.map