import { Constructable } from '@tachybase/utils'; /** * Thrown when DI cannot inject value into property decorated by @Inject decorator. */ export class CannotInjectValueError extends Error { public name = 'CannotInjectValueError'; get message(): string { return ( `Cannot inject value into "${this.target.name}.${this.propertyName}". ` + `Please make sure you setup reflect-metadata properly and you don't use interfaces without service tokens as injection value.` ); } constructor( private target: Constructable, private propertyName: string, ) { super(); } }