comparison mercurial/error.py @ 23015:21c44c1aed87

repoview: add a FilteredLookupError class This exception is a more precise LookupError 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 Thu, 16 Oct 2014 02:05:06 -0700
parents f00813325c5a
children 2bd51e61c65e
comparison
equal deleted inserted replaced
23014:f00813325c5a 23015:21c44c1aed87
27 name = short(name) 27 name = short(name)
28 RevlogError.__init__(self, '%s@%s: %s' % (index, name, message)) 28 RevlogError.__init__(self, '%s@%s: %s' % (index, name, message))
29 29
30 def __str__(self): 30 def __str__(self):
31 return RevlogError.__str__(self) 31 return RevlogError.__str__(self)
32
33 class FilteredLookupError(LookupError):
34 pass
32 35
33 class ManifestLookupError(LookupError): 36 class ManifestLookupError(LookupError):
34 pass 37 pass
35 38
36 class CommandError(Exception): 39 class CommandError(Exception):