diff -r 974592474dee -r cb65d4b7e429 mercurial/error.py --- a/mercurial/error.py Tue Sep 18 16:28:17 2018 -0700 +++ b/mercurial/error.py Tue Sep 18 16:45:13 2018 -0700 @@ -34,7 +34,14 @@ self.hint = kw.pop(r'hint', None) super(Hint, self).__init__(*args, **kw) -class RevlogError(Hint, Exception): +class StorageError(Hint, Exception): + """Raised when an error occurs in a storage layer. + + Usually subclassed by a storage-specific exception. + """ + __bytes__ = _tobytes + +class RevlogError(StorageError): __bytes__ = _tobytes class FilteredIndexError(IndexError):