create CommandNotFound error

This commit is contained in:
mmacierzanka committed 2021-09-07 18:01:37 +02:00
1 parent 66d788084a
commit ea8211c5ff
1 file changed
+9
+9
View File
@@ -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;
}
}