/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/core/errors/exceptions/unknown-dependencies.exception.ts
18 строк
681 B
Kamil Myśliwiec
fix(core): circular structure error (jest) #11303
22 мар 2023, 11:46
Не верифицирован
22 мар 2023, 11:46
36e8bfc
Код
Авторство
О чём код?
import { InjectorDependencyContext } from '../../injector/injector'; import { Module } from '../../injector/module'; import { UNKNOWN_DEPENDENCIES_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class UnknownDependenciesException extends RuntimeException { public readonly moduleRef: { id: string } | undefined; constructor( public readonly type: string | symbol, public readonly context: InjectorDependencyContext, moduleRef?: Module, public readonly metadata?: { id: string }, ) { super(UNKNOWN_DEPENDENCIES_MESSAGE(type, context, moduleRef)); this.moduleRef = moduleRef && { id: moduleRef.id }; } }