UNPKG

@carlosv2/glue

Version:

Dependency injection library that stays out of the way

18 lines (17 loc) 638 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParameterNotFoundError = void 0; const error_1 = require("../error"); class ParameterNotFoundError extends error_1.DiError { constructor(id, context) { const message = [`Parameter definition \`${id}\` was not found.`]; if (context) { const representation = context.getRepresentation(); if (representation.length) { message.push(`Chain of requests:\n${representation}`); } } super(message.join(' ')); } } exports.ParameterNotFoundError = ParameterNotFoundError;