Mercurial > hg
comparison mercurial/error.py @ 23014:f00813325c5a
repoview: add a FilteredIndexError class
This exception is a more precise IndexError that will allow us to
issue a special message when we end up accessing a filtered revision.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 15 Oct 2014 17:02:44 -0700 |
parents | 73f394f4affc |
children | 21c44c1aed87 |
comparison
equal
deleted
inserted
replaced
23013:b50ed6b9b513 | 23014:f00813325c5a |
---|---|
12 """ | 12 """ |
13 | 13 |
14 # Do not import anything here, please | 14 # Do not import anything here, please |
15 | 15 |
16 class RevlogError(Exception): | 16 class RevlogError(Exception): |
17 pass | |
18 | |
19 class FilteredIndexError(IndexError): | |
17 pass | 20 pass |
18 | 21 |
19 class LookupError(RevlogError, KeyError): | 22 class LookupError(RevlogError, KeyError): |
20 def __init__(self, name, index, message): | 23 def __init__(self, name, index, message): |
21 self.name = name | 24 self.name = name |