aboutsummaryrefslogtreecommitdiff
path: root/bindings/ruby/database.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2011-09-26 03:05:35 +0200
committerSebastian Spaeth <Sebastian@SSpaeth.de>2011-09-30 13:58:03 +0200
commitb6a01735d238733ef78f941a8b7c4bad59db2734 (patch)
treee3fc127dc19ad42c04564a5a674673cbf9038117 /bindings/ruby/database.c
parenta378a91ba2db58608640cd58373565d653a7c4e6 (diff)
python: provide more exception classes
To make the exception handling more effective in code using the python bindings it is necessary to differentiate between the different kind of failures. Add an exception class for each status code and add a decode classmethod to the NotmuchError class that acts as a factory. Import the new classes in __init__.py so they can be easily imported by anyone. Patch modifed by Sebastian Spaeth. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings/ruby/database.c')
0 files changed, 0 insertions, 0 deletions