UNPKG

864 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when circular relations detected with nullable set to false.
6 */
7var CircularRelationsError = /** @class */ (function (_super) {
8 tslib_1.__extends(CircularRelationsError, _super);
9 function CircularRelationsError(path) {
10 var _this = _super.call(this) || this;
11 _this.name = "CircularRelationsError";
12 Object.setPrototypeOf(_this, CircularRelationsError.prototype);
13 _this.message = "Circular relations detected: " + path + ". To resolve this issue you need to set nullable: false somewhere in this dependency structure.";
14 return _this;
15 }
16 return CircularRelationsError;
17}(Error));
18exports.CircularRelationsError = CircularRelationsError;
19
20//# sourceMappingURL=CircularRelationsError.js.map