This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.

Lib-storage Error Handling

src/lib-storage/mail-error.h describes different types of errors and has some other error-related functions and macros.

Only errors returning "int" can actually return a failure.

Getting lib-storage errors

Setting lib-storage errors

Errors can be set with two calls:

There are also a few other calls that aren't used as often, but can be helpful:

None: Design/Storage/ErrorHandling (last edited 2010-02-07 11:41:09 by TimoSirainen)