equal
deleted
inserted
replaced
30 class CommandError(Exception): |
30 class CommandError(Exception): |
31 """Exception raised on errors in parsing the command line.""" |
31 """Exception raised on errors in parsing the command line.""" |
32 |
32 |
33 class Abort(Exception): |
33 class Abort(Exception): |
34 """Raised if a command needs to print an error and exit.""" |
34 """Raised if a command needs to print an error and exit.""" |
|
35 def __init__(self, *args, **kw): |
|
36 Exception.__init__(self, *args) |
|
37 self.hint = kw.get('hint') |
35 |
38 |
36 class ConfigError(Abort): |
39 class ConfigError(Abort): |
37 'Exception raised when parsing config files' |
40 'Exception raised when parsing config files' |
38 |
41 |
39 class ParseError(Exception): |
42 class ParseError(Exception): |