Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/error.py @ 25249:4311e78a4609
error: derive RevlogError from HintException instead of Exception
This will allow us to now pass hints into this exception.
author | Jordi Guti?rrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 21 May 2015 16:20:34 -0400 |
parents | 821e664924dc |
children | a5192774e925 |
comparison
equal
deleted
inserted
replaced
25248:821e664924dc | 25249:4311e78a4609 |
---|---|
16 class HintException(Exception): | 16 class HintException(Exception): |
17 def __init__(self, *args, **kw): | 17 def __init__(self, *args, **kw): |
18 Exception.__init__(self, *args) | 18 Exception.__init__(self, *args) |
19 self.hint = kw.get('hint') | 19 self.hint = kw.get('hint') |
20 | 20 |
21 class RevlogError(Exception): | 21 class RevlogError(HintException): |
22 pass | 22 pass |
23 | 23 |
24 class FilteredIndexError(IndexError): | 24 class FilteredIndexError(IndexError): |
25 pass | 25 pass |
26 | 26 |