Files
nest/packages/core/errors/exceptions/unknown-element.exception.ts

13 lines
347 B
TypeScript

import { RuntimeException } from './runtime.exception';
export class UnknownElementException extends RuntimeException {
constructor(name?: string | symbol) {
name = name && name.toString();
super(
`Nest could not find ${
name || 'given'
} element (this provider does not exist in the current context)`,
);
}
}