diff --git a/src/errors.ts b/src/errors.ts index 6356715..700038d 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -68,3 +68,12 @@ export class OperationSuccess { this.command = c; } } + +export class CommandNotFound extends Error { + public readonly query?: string; + + constructor(q?: string) { + super("Command not found"); + this.query = q; + } +}