DatabaseModifiedErrors causing troubles

Gaute Hope eg at gaute.vetsj.com
Thu Aug 21 02:01:09 PDT 2014


On Thu, Aug 21, 2014 at 10:59 AM, Gaute Hope <eg at gaute.vetsj.com> wrote:
> For portability I would suggest starting to move towards the GError
> scheme provided by glib (also used by gmime). This is a somewhat major
> effort though since ensuring that error propagation is done right [0] is
> somewhat tricky. It provides more or less the same functionality as
> exceptions do in C++.
>
> There is also the problem of having to change the API - one way to avoid
> that is to create wrappers that behave like the old API, but don't
> handle errors that good. This requires the addition of addiontal _error
> variations of the current set of functions. It will be a mess.
>
> [0] https://developer.gnome.org/glib/stable/glib-Error-Reporting.html

Here's a quick mockup of how that could look.

Cheers, Gaute
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mockup-Illustration-of-GError-for-error-reporting.patch
Type: text/x-patch
Size: 4536 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140821/8ac2eb32/attachment.bin>


More information about the notmuch mailing list