comparison mercurial/error.py @ 11288:2123aad24d56

error: add new ParseError for various parsing errors
author Matt Mackall <mpm@selenic.com>
date Fri, 04 Jun 2010 20:57:26 -0500
parents b901bb751999
children 037d910734de
comparison
equal deleted inserted replaced
11287:b901bb751999 11288:2123aad24d56
28 return RevlogError.__str__(self) 28 return RevlogError.__str__(self)
29 29
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 ConfigError(Exception): 33 class Abort(Exception):
34 """Raised if a command needs to print an error and exit."""
35
36 class ConfigError(Abort):
34 'Exception raised when parsing config files' 37 'Exception raised when parsing config files'
38
39 class ParseError(Abort):
40 'Exception raised when parsing config files (msg[, pos])'
35 41
36 class RepoError(Exception): 42 class RepoError(Exception):
37 pass 43 pass
38 44
39 class RepoLookupError(RepoError): 45 class RepoLookupError(RepoError):
68 class SignalInterrupt(KeyboardInterrupt): 74 class SignalInterrupt(KeyboardInterrupt):
69 """Exception raised on SIGTERM and SIGHUP.""" 75 """Exception raised on SIGTERM and SIGHUP."""
70 76
71 class SignatureError(Exception): 77 class SignatureError(Exception):
72 pass 78 pass
73
74 class Abort(Exception):
75 """Raised if a command needs to print an error and exit."""