python: refactor the error handling machinery
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 20 Feb 2012 22:49:07 +0000 (23:49 +0100)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 20 Feb 2012 22:49:07 +0000 (23:49 +0100)
commita1442952d4d7fad8b7612502802ee346ac8fd349
treedb39fb9e53bd8b1f883c44a64e8b727f0d28beb2
parent4bb9f59ff6da456392ffaf9871941203e4cf9b53
python: refactor the error handling machinery

Raise specific error classes instead of a generic NotmuchError with an
magic status value (e.g. NotmuchError(STATUS.NULL_POINTER) ->
NullPointerError()), update the documentation accordingly.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/notmuch/database.py
bindings/python/notmuch/filename.py
bindings/python/notmuch/message.py
bindings/python/notmuch/tag.py
bindings/python/notmuch/thread.py