comparison mercurial/error.py @ 22359:e3714b927af5

error: use docstrings, not bare strings, for error classes
author Mike Edgar <adgar@google.com>
date Sat, 30 Aug 2014 12:22:20 +0200
parents fecead61d222
children 244478687edd
comparison
equal deleted inserted replaced
22358:198e2da3ee20 22359:e3714b927af5
41 def __init__(self, *args, **kw): 41 def __init__(self, *args, **kw):
42 Exception.__init__(self, *args) 42 Exception.__init__(self, *args)
43 self.hint = kw.get('hint') 43 self.hint = kw.get('hint')
44 44
45 class ConfigError(Abort): 45 class ConfigError(Abort):
46 'Exception raised when parsing config files' 46 """Exception raised when parsing config files"""
47 47
48 class OutOfBandError(Exception): 48 class OutOfBandError(Exception):
49 'Exception raised when a remote repo reports failure' 49 """Exception raised when a remote repo reports failure"""
50 50
51 class ParseError(Exception): 51 class ParseError(Exception):
52 'Exception raised when parsing config files (msg[, pos])' 52 """Exception raised when parsing config files (msg[, pos])"""
53 53
54 class RepoError(Exception): 54 class RepoError(Exception):
55 def __init__(self, *args, **kw): 55 def __init__(self, *args, **kw):
56 Exception.__init__(self, *args) 56 Exception.__init__(self, *args)
57 self.hint = kw.get('hint') 57 self.hint = kw.get('hint')