aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/ruby/status.c
diff options
context:
space:
mode:
authorGravatar Ali Polatel <alip@exherbo.org>2011-09-24 15:54:45 +0300
committerGravatar Ali Polatel <alip@exherbo.org>2011-09-24 15:54:45 +0300
commit59d2457bcc5e19f287006cea8da0c7c7a003200d (patch)
tree4d497ef7e8f7bf7fbcf3745967a0444747091e2b /bindings/ruby/status.c
parentbbb41081d797c3301e4d202e30c4111207fe7693 (diff)
ruby: New exception Notmuch::UnbalancedAtomicError
This exception wraps NOTMUCH_STATUS_UNBALANCED_ATOMIC which was added with the commit e59cc0031fbf84f49e32dedb9927f427d2c49309.
Diffstat (limited to 'bindings/ruby/status.c')
-rw-r--r--bindings/ruby/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bindings/ruby/status.c b/bindings/ruby/status.c
index 3d106ca9..a2bd61a7 100644
--- a/bindings/ruby/status.c
+++ b/bindings/ruby/status.c
@@ -43,6 +43,8 @@ notmuch_rb_status_raise(notmuch_status_t status)
rb_raise(notmuch_rb_eTagTooLongError, "tag too long");
case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW:
rb_raise(notmuch_rb_eUnbalancedFreezeThawError, "unbalanced freeze/thaw");
+ case NOTMUCH_STATUS_UNBALANCED_ATOMIC:
+ rb_raise(notmuch_rb_eUnbalancedAtomicError, "unbalanced atomic");
default:
rb_raise(notmuch_rb_eBaseError, "unknown notmuch error");
}