typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
19 lines (17 loc) • 759 B
JavaScript
import { __extends } from "tslib";
/**
* Thrown when circular relations detected with nullable set to false.
*/
var CircularRelationsError = /** @class */ (function (_super) {
__extends(CircularRelationsError, _super);
function CircularRelationsError(path) {
var _this = _super.call(this) || this;
_this.name = "CircularRelationsError";
Object.setPrototypeOf(_this, CircularRelationsError.prototype);
_this.message = "Circular relations detected: " + path + ". To resolve this issue you need to set nullable: true somewhere in this dependency structure.";
return _this;
}
return CircularRelationsError;
}(Error));
export { CircularRelationsError };
//# sourceMappingURL=CircularRelationsError.js.map