equal
deleted
inserted
replaced
45 class Abort(Exception): |
45 class Abort(Exception): |
46 """Raised if a command needs to print an error and exit.""" |
46 """Raised if a command needs to print an error and exit.""" |
47 def __init__(self, *args, **kw): |
47 def __init__(self, *args, **kw): |
48 Exception.__init__(self, *args) |
48 Exception.__init__(self, *args) |
49 self.hint = kw.get('hint') |
49 self.hint = kw.get('hint') |
|
50 |
|
51 class HookAbort(Abort): |
|
52 """raised when a validation hook fails, aborting an operation |
|
53 |
|
54 Exists to allow more specialized catching.""" |
|
55 pass |
50 |
56 |
51 class ConfigError(Abort): |
57 class ConfigError(Abort): |
52 """Exception raised when parsing config files""" |
58 """Exception raised when parsing config files""" |
53 |
59 |
54 class OutOfBandError(Exception): |
60 class OutOfBandError(Exception): |