You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
437 B
13 lines
437 B
import {DependencyKey} from '../types'
|
|
import {ErrorWithContext} from '../../util'
|
|
|
|
/**
|
|
* Error thrown when a dependency key that has not been registered is passed to a resolver.
|
|
* @extends Error
|
|
*/
|
|
export class InvalidDependencyKeyError extends ErrorWithContext {
|
|
constructor(key: DependencyKey, context: {[key: string]: any} = {}) {
|
|
super(`No such dependency is registered with this container: ${key}`, context)
|
|
}
|
|
}
|