UNPKG

589 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.CircularDependencyException = void 0;
4const runtime_exception_1 = require("./runtime.exception");
5class CircularDependencyException extends runtime_exception_1.RuntimeException {
6 constructor(context) {
7 const ctx = context ? ` inside ${context}` : ``;
8 super(`A circular dependency has been detected${ctx}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()".`);
9 }
10}
11exports.CircularDependencyException = CircularDependencyException;