UNPKG

936 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when consumer tries to execute operation allowed only if connection is opened.
6 */
7var CannotExecuteNotConnectedError = /** @class */ (function (_super) {
8 tslib_1.__extends(CannotExecuteNotConnectedError, _super);
9 function CannotExecuteNotConnectedError(connectionName) {
10 var _this = _super.call(this) || this;
11 _this.name = "CannotExecuteNotConnectedError";
12 Object.setPrototypeOf(_this, CannotExecuteNotConnectedError.prototype);
13 _this.message = "Cannot execute operation on \"" + connectionName + "\" connection because connection is not yet established.";
14 return _this;
15 }
16 return CannotExecuteNotConnectedError;
17}(Error));
18exports.CannotExecuteNotConnectedError = CannotExecuteNotConnectedError;
19
20//# sourceMappingURL=CannotExecuteNotConnectedError.js.map