@jems/di
Version:
An implementation of IoC pattern based on dependency injection that allows you to granulate and decouple your libraries or applications. Wrote using SOLID principles and a variety OOP patterns implementations.
28 lines (27 loc) • 1.15 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var baseError_1 = require("./baseError");
/**
* Represents an error triggered when a cyclic dependency has been identified.
*/
var CyclicDependencyError = /** @class */ (function (_super) {
__extends(CyclicDependencyError, _super);
function CyclicDependencyError(message, cyclicStack) {
var _this = _super.call(this, message) || this;
_this.name = 'CyclicDependencyError';
_this.cyclicStack = cyclicStack;
return _this;
}
return CyclicDependencyError;
}(baseError_1.BaseError));
exports.CyclicDependencyError = CyclicDependencyError;