mercurial/error.py
changeset 39776 cb65d4b7e429
parent 39596 409c42d6a570
child 39777 b63dee7bd0d9
--- 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):