mercurial/error.py
changeset 11574 6381fa7bfa53
parent 11292 037d910734de
child 13447 931a72e00efa
equal deleted inserted replaced
11573:7ecf4a082c5f 11574:6381fa7bfa53
    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):