UNPKG

@ashnov/hephaestus-cli

Version:

Your AI powered CLI-based coding assistant. Powered by OpenAI davinci models.

21 lines (20 loc) 458 B
export class CommandError extends Error { constructor(msg, cmd, unknownCommand) { super(msg); this._command = cmd; this._name = 'CommandError'; this._unknownCommand = unknownCommand; } get name() { return this._name; } get command() { return this._command; } get message() { return this.message; } get unknownCommand() { return this._unknownCommand; } }