UNPKG

910 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when transaction is already started and user tries to run it again.
6 */
7var TransactionAlreadyStartedError = /** @class */ (function (_super) {
8 tslib_1.__extends(TransactionAlreadyStartedError, _super);
9 function TransactionAlreadyStartedError() {
10 var _this = _super.call(this) || this;
11 _this.name = "TransactionAlreadyStartedError";
12 Object.setPrototypeOf(_this, TransactionAlreadyStartedError.prototype);
13 _this.message = "Transaction already started for the given connection, commit current transaction before starting a new one.";
14 return _this;
15 }
16 return TransactionAlreadyStartedError;
17}(Error));
18exports.TransactionAlreadyStartedError = TransactionAlreadyStartedError;
19
20//# sourceMappingURL=TransactionAlreadyStartedError.js.map