mercurial/error.py
changeset 39776 cb65d4b7e429
parent 39596 409c42d6a570
child 39777 b63dee7bd0d9
equal deleted inserted replaced
39775:974592474dee 39776:cb65d4b7e429
    32     """
    32     """
    33     def __init__(self, *args, **kw):
    33     def __init__(self, *args, **kw):
    34         self.hint = kw.pop(r'hint', None)
    34         self.hint = kw.pop(r'hint', None)
    35         super(Hint, self).__init__(*args, **kw)
    35         super(Hint, self).__init__(*args, **kw)
    36 
    36 
    37 class RevlogError(Hint, Exception):
    37 class StorageError(Hint, Exception):
       
    38     """Raised when an error occurs in a storage layer.
       
    39 
       
    40     Usually subclassed by a storage-specific exception.
       
    41     """
       
    42     __bytes__ = _tobytes
       
    43 
       
    44 class RevlogError(StorageError):
    38     __bytes__ = _tobytes
    45     __bytes__ = _tobytes
    39 
    46 
    40 class FilteredIndexError(IndexError):
    47 class FilteredIndexError(IndexError):
    41     __bytes__ = _tobytes
    48     __bytes__ = _tobytes
    42 
    49