Files
nest/packages/core/errors/exceptions/unknown-element.exception.ts
2020-03-22 12:10:49 +01:00

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)`,
);
}
}