error: refactor OutOfBandError to inherit from HintException
authortimeless <timeless@mozdev.org>
Wed, 23 Dec 2015 17:38:24 +0000
changeset 27515 f8142cb77b1e
parent 27514 311eddddca49
child 27516 1c1216182dc1
error: refactor OutOfBandError to inherit from HintException
mercurial/error.py
--- a/mercurial/error.py	Tue Dec 22 20:10:22 2015 +0000
+++ b/mercurial/error.py	Wed Dec 23 17:38:24 2015 +0000
@@ -78,13 +78,9 @@
         from .i18n import _
         Abort.__init__(self, _('response expected'))
 
-class OutOfBandError(Exception):
+class OutOfBandError(HintException):
     """Exception raised when a remote repo reports failure"""
 
-    def __init__(self, *args, **kw):
-        Exception.__init__(self, *args)
-        self.hint = kw.get('hint')
-
 class ParseError(Exception):
     """Raised when parsing config files and {rev,file}sets (msg[, pos])"""