diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2011-09-30 16:04:42 +0200 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2011-09-30 16:04:42 +0200 |
commit | 8c51525e8213e074a845ad53d7196453952623dd (patch) | |
tree | 41a5ff444b2c532aec8c5a64b03be9a3ca496600 /lib/xutil.h | |
parent | b6a01735d238733ef78f941a8b7c4bad59db2734 (diff) |
python: rework creating of Subclasses
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>
Diffstat (limited to 'lib/xutil.h')
0 files changed, 0 insertions, 0 deletions