diff -r 84346894def8 -r 9a1ea6587557 mercurial/error.py --- a/mercurial/error.py Mon Jan 12 11:28:30 2009 -0600 +++ b/mercurial/error.py Mon Jan 12 11:39:38 2009 -0600 @@ -50,3 +50,9 @@ class ResponseError(Exception): """Raised to print an error with part of output and exit.""" +class UnknownCommand(Exception): + """Exception raised if command is not in the command table.""" + +class AmbiguousCommand(Exception): + """Exception raised if command shortcut matches more than one command.""" +