@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.
13 lines (12 loc) • 492 B
JavaScript
import { INVALID_CLASS_SCOPE_MESSAGE } from '../messages.js';
import { RuntimeException } from './runtime.exception.js';
import { isFunction } from '@nestjs/common/internal';
export class InvalidClassScopeException extends RuntimeException {
constructor(metatypeOrToken) {
let name = isFunction(metatypeOrToken)
? metatypeOrToken.name
: metatypeOrToken;
name = name && name.toString();
super(INVALID_CLASS_SCOPE_MESSAGE `${name}`);
}
}