UNPKG

@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.

27 lines (26 loc) 1.09 kB
"use strict"; 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 invalid data is pass to the functions in one or more arguments. */ var InvalidDataError = /** @class */ (function (_super) { __extends(InvalidDataError, _super); function InvalidDataError(message) { var _this = _super.call(this, message) || this; _this.name = 'InvalidDataError'; return _this; } return InvalidDataError; }(baseError_1.BaseError)); exports.InvalidDataError = InvalidDataError;