@nestjs/core
Version:
The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.
16 lines (15 loc) • 528 B
JavaScript
import { UNKNOWN_DEPENDENCIES_MESSAGE } from '../messages.js';
import { RuntimeException } from './runtime.exception.js';
export class UnknownDependenciesException extends RuntimeException {
type;
context;
metadata;
moduleRef;
constructor(type, context, moduleRef, metadata) {
super(UNKNOWN_DEPENDENCIES_MESSAGE(type, context, moduleRef));
this.type = type;
this.context = context;
this.metadata = metadata;
this.moduleRef = moduleRef && { id: moduleRef.id };
}
}