Archived
create CommandNotFound error
This commit is contained in:
1 parent
66d788084a
commit
ea8211c5ff
1 file changed
+9
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user