bluecodex
Version:
Turn repetitive dev tasks into CLI commands with Typescript
16 lines (14 loc) • 326 B
text/typescript
export class InvalidArgTypeError<
ArgName extends string = string,
TypeToken extends string = string,
> extends Error {
constructor(
readonly argName: ArgName,
readonly typeToken: TypeToken,
) {
super();
}
get message() {
return `Invalid type "${this.typeToken}" for arg "${this.argName}"`;
}
}