2021-06-02 22:36:25 -05:00
|
|
|
import {DependencyKey} from '../types'
|
2021-06-01 20:59:40 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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}`)
|
|
|
|
|
}
|
|
|
|
|
}
|