comparison mercurial/error.py @ 34251:61714510220d

error: move patch.PatchError so it can easily implement __bytes__ (API)
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Sep 2017 16:45:33 +0900
parents 6df193b5c437
children 795bfa2a9103
comparison
equal deleted inserted replaced
34250:448725a2ef73 34251:61714510220d
111 """Exception raised when a remote repo reports failure""" 111 """Exception raised when a remote repo reports failure"""
112 __bytes__ = _tobytes 112 __bytes__ = _tobytes
113 113
114 class ParseError(Hint, Exception): 114 class ParseError(Hint, Exception):
115 """Raised when parsing config files and {rev,file}sets (msg[, pos])""" 115 """Raised when parsing config files and {rev,file}sets (msg[, pos])"""
116 __bytes__ = _tobytes
117
118 class PatchError(Exception):
116 __bytes__ = _tobytes 119 __bytes__ = _tobytes
117 120
118 class UnknownIdentifier(ParseError): 121 class UnknownIdentifier(ParseError):
119 """Exception raised when a {rev,file}set references an unknown identifier""" 122 """Exception raised when a {rev,file}set references an unknown identifier"""
120 123