import { Constructor, text } from '@rsdk/common'; import { BootstrapException, Exception } from '../../../exceptions'; import type { ConfigSource } from '../base'; @Exception({ description: text` Wrong usage of DI in custom configuration source. See @rsdk/core docs. `, }) export class ConfigSourceDIException extends BootstrapException { constructor(source: Constructor, param: unknown) { super(text` Only standalone properties (from env) and some special values (ex. application name) can be injected into ConfigSource constructor. You are trying to inject <${param}> to ${source.constructor.name}. `); } }