UNPKG

996 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when user saves tree children entity but its parent is not saved yet.
6*/
7var CannotAttachTreeChildrenEntityError = /** @class */ (function (_super) {
8 tslib_1.__extends(CannotAttachTreeChildrenEntityError, _super);
9 function CannotAttachTreeChildrenEntityError(entityName) {
10 var _this = _super.call(this) || this;
11 _this.name = "CannotAttachTreeChildrenEntityError";
12 Object.setPrototypeOf(_this, CannotAttachTreeChildrenEntityError.prototype);
13 _this.message = "Cannot attach entity \"" + entityName + "\" to its parent. Please make sure parent is saved in the database before saving children nodes.";
14 return _this;
15 }
16 return CannotAttachTreeChildrenEntityError;
17}(Error));
18exports.CannotAttachTreeChildrenEntityError = CannotAttachTreeChildrenEntityError;
19
20//# sourceMappingURL=CannotAttachTreeChildrenEntityError.js.map