Mercurial > public > mercurial-scm > hg-stable
diff mercurial/error.py @ 7643:9a1ea6587557
error: move UnknownCommand and AmbiguousCommand
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 Jan 2009 11:39:38 -0600 |
parents | d2f753830f80 |
children | 182b7114d35a |
line wrap: on
line diff
--- 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.""" +