]> git.cworth.org Git - notmuch/commitdiff
python: rework creating of Subclasses
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 30 Sep 2011 14:04:42 +0000 (16:04 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 30 Sep 2011 14:04:42 +0000 (16:04 +0200)
Add some smart magic, so that when we invoke a
NotmuchError(STATUSVALUE), a nicely derived subclass is created, e.g. a
OutOfMemoryError. This way users can easily distinguish between error
types, while still catching NotmuchError.

I have tested this, and hope it works for others too.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>

No differences found