Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 1x 1x 1x 1x 1x 1x | import { ITSinjex } from './ITSinjex';
/**
* General error class for {@link ITSinjex} interface.
*/
export class TSinjexError extends Error {
/**
* Creates a new instance of {@link TSinjexError}
* @param message **The error message**
*/
constructor(message: string) {
super(message);
this.name = 'TSInjex';
}
}
/**
* Error class for dependency resolution errors in {@link ITSinjex}.
* @see {@link ITSinjex.resolve}
*/
export class DependencyResolutionError extends TSinjexError {
/**
* Creates a new instance of {@link DependencyResolutionError}
* @param identifier **The identifier of the dependency**
*/
constructor(identifier: string) {
super(`Dependency ${identifier} not found.`);
this.name = 'TSInjexResolutionError';
}
}
|