@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.
21 lines (20 loc) • 584 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var util_1 = require("util");
/**
* Represents the base error.
*/
var BaseError = /** @class */ (function () {
/**
* Instantiate the error with the given message.
* @param message Represents the message of the error.
*/
function BaseError(message) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
}
return BaseError;
}());
exports.BaseError = BaseError;
util_1.inherits(BaseError, Error);