aboutsummaryrefslogtreecommitdiff
path: root/bindings/python-cffi/notmuch2/_errors.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2025-08-28 11:00:59 +0200
committerDavid Bremner <david@tethera.net>2025-09-14 13:32:45 -0300
commitc55953e9de408674d71db78ea4fff941972b2f0a (patch)
tree3c343b3d0644d51b596e2cbf16fe586d86d57dae /bindings/python-cffi/notmuch2/_errors.py
parentabdff73a3333b295a599135ad2777e852189e188 (diff)
bindings/python-cffi: handle NOTMUCH_STATUS_OPERATION_INVALIDATED
Raise it as a newly added OperationInvalidatedError exception.
Diffstat (limited to 'bindings/python-cffi/notmuch2/_errors.py')
-rw-r--r--bindings/python-cffi/notmuch2/_errors.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/python-cffi/notmuch2/_errors.py b/bindings/python-cffi/notmuch2/_errors.py
index 17c3ad9c..483e794b 100644
--- a/bindings/python-cffi/notmuch2/_errors.py
+++ b/bindings/python-cffi/notmuch2/_errors.py
@@ -28,6 +28,8 @@ class NotmuchError(Exception):
ReadOnlyDatabaseError,
capi.lib.NOTMUCH_STATUS_XAPIAN_EXCEPTION:
XapianError,
+ capi.lib.NOTMUCH_STATUS_OPERATION_INVALIDATED:
+ OperationInvalidatedError,
capi.lib.NOTMUCH_STATUS_FILE_ERROR:
FileError,
capi.lib.NOTMUCH_STATUS_FILE_NOT_EMAIL:
@@ -92,6 +94,7 @@ class NotmuchError(Exception):
class OutOfMemoryError(NotmuchError): pass
class ReadOnlyDatabaseError(NotmuchError): pass
class XapianError(NotmuchError): pass
+class OperationInvalidatedError(XapianError): pass
class FileError(NotmuchError): pass
class FileNotEmailError(NotmuchError): pass
class DuplicateMessageIdError(NotmuchError): pass