mirror of
https://github.com/nestjs/nest.git
synced 2026-02-24 00:02:56 +00:00
13 lines
347 B
TypeScript
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)`,
|
|
);
|
|
}
|
|
}
|