UNPKG

@carlosv2/glue

Version:

Dependency injection library that stays out of the way

14 lines (13 loc) 464 B
import { DiError } from '../error.js'; export class ParameterNotFoundError extends 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(' ')); } }