equal
deleted
inserted
replaced
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 |