diff options
author | Ali Polatel <alip@exherbo.org> | 2011-09-24 15:54:45 +0300 |
---|---|---|
committer | Ali Polatel <alip@exherbo.org> | 2011-09-24 15:54:45 +0300 |
commit | 59d2457bcc5e19f287006cea8da0c7c7a003200d (patch) | |
tree | 4d497ef7e8f7bf7fbcf3745967a0444747091e2b /bindings/ruby/init.c | |
parent | bbb41081d797c3301e4d202e30c4111207fe7693 (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/init.c')
-rw-r--r-- | bindings/ruby/init.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bindings/ruby/init.c b/bindings/ruby/init.c index a516ab98..72e1a478 100644 --- a/bindings/ruby/init.c +++ b/bindings/ruby/init.c @@ -166,7 +166,14 @@ Init_notmuch(void) */ notmuch_rb_eUnbalancedFreezeThawError = rb_define_class_under(mod, "UnbalancedFreezeThawError", notmuch_rb_eBaseError); - + /* + * Document-class: Notmuch::UnbalancedAtomicError + * + * Raised when notmuch_database_end_atomic has been called more times than + * notmuch_database_begin_atomic + */ + notmuch_rb_eUnbalancedAtomicError = rb_define_class_under(mod, "UnbalancedAtomicError", + notmuch_rb_eBaseError); /* * Document-class: Notmuch::Database * |