Mercurial > public > mercurial-scm > hg
comparison mercurial/error.py @ 18931:3c224e0949de
error: introduce new InterventionRequired exception
Future changes will use this type instead of util.Abort for signalling
the user that intervention is required, as in some rebase and histedit
aborts.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 08 Feb 2013 14:26:03 -0600 |
parents | 50c922c1b514 |
children | 28d76afa1568 |
comparison
equal
deleted
inserted
replaced
18930:9dd5a4815c6f | 18931:3c224e0949de |
---|---|
30 class ManifestLookupError(LookupError): | 30 class ManifestLookupError(LookupError): |
31 pass | 31 pass |
32 | 32 |
33 class CommandError(Exception): | 33 class CommandError(Exception): |
34 """Exception raised on errors in parsing the command line.""" | 34 """Exception raised on errors in parsing the command line.""" |
35 | |
36 class InterventionRequired(Exception): | |
37 """Exception raised when a command requires human intervention.""" | |
35 | 38 |
36 class Abort(Exception): | 39 class Abort(Exception): |
37 """Raised if a command needs to print an error and exit.""" | 40 """Raised if a command needs to print an error and exit.""" |
38 def __init__(self, *args, **kw): | 41 def __init__(self, *args, **kw): |
39 Exception.__init__(self, *args) | 42 Exception.__init__(self, *args) |