INNER CODE UNIT · TypeScript
InvalidCommandException
tenseijs/tensei · packages/cli/src/Exceptions/index.ts:108
export class InvalidCommandException extends Exception {
public commandName: string = ''
public suggestions: string[] = []
public static invoke(
commandName: string,
suggestions: string[]
): InvalidCommandException {
const exception = new this(
`"${commandName}" is not a registered command`,
500,
'E_INVALID_COMMAND'
)
exception.commandName = commandName
exception.suggestions = suggestions
return exception
}