refactor: Add error class for missing identifiers
This commit is contained in:
@@ -15,6 +15,19 @@ export class TSinjexError extends Error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Error class for missing identifiers in {@link ITSinjex} methods.
|
||||||
|
*/
|
||||||
|
export class IdentifierRequiredError extends TSinjexError {
|
||||||
|
/**
|
||||||
|
* Creates a new instance of {@link IdentifierRequiredError}
|
||||||
|
*/
|
||||||
|
constructor() {
|
||||||
|
super('Identifier is required.');
|
||||||
|
this.name = 'TSinjexIdentifierRequiredError';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error class for dependency resolution errors in {@link ITSinjex}.
|
* Error class for dependency resolution errors in {@link ITSinjex}.
|
||||||
* @see {@link ITSinjex.resolve}
|
* @see {@link ITSinjex.resolve}
|
||||||
|
Reference in New Issue
Block a user