Import other modules into monorepo
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
11
src/di/error/InvalidDependencyKeyError.ts
Normal file
11
src/di/error/InvalidDependencyKeyError.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {DependencyKey} from "../types";
|
||||
|
||||
/**
|
||||
* Error thrown when a dependency key that has not been registered is passed to a resolver.
|
||||
* @extends Error
|
||||
*/
|
||||
export class InvalidDependencyKeyError extends Error {
|
||||
constructor(key: DependencyKey) {
|
||||
super(`No such dependency is registered with this container: ${key}`)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user