mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 15:08:37 +00:00
12 lines
302 B
TypeScript
12 lines
302 B
TypeScript
import { RuntimeException } from './runtime.exception';
|
|
|
|
export class UnknownElementException extends RuntimeException {
|
|
constructor(name?: string) {
|
|
super(
|
|
`Nest could not find ${
|
|
name || 'given'
|
|
} element (this provider does not exist in the current context)`,
|
|
);
|
|
}
|
|
}
|