UNPKG

961 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when user tries to save/remove/etc. constructor-less object (object literal) instead of entity.
6 */
7var CannotDetermineEntityError = /** @class */ (function (_super) {
8 tslib_1.__extends(CannotDetermineEntityError, _super);
9 function CannotDetermineEntityError(operation) {
10 var _this = _super.call(this) || this;
11 _this.name = "CannotDetermineEntityError";
12 Object.setPrototypeOf(_this, CannotDetermineEntityError.prototype);
13 _this.message = "Cannot " + operation + ", given value must be instance of entity class, instead object literal is given. Or you must specify an entity target to method call.";
14 return _this;
15 }
16 return CannotDetermineEntityError;
17}(Error));
18exports.CannotDetermineEntityError = CannotDetermineEntityError;
19
20//# sourceMappingURL=CannotDetermineEntityError.js.map