apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: Generic errors
Date Fri, 30 Mar 2007 09:06:38 GMT
David Reid wrote:

> For instance, a call to an ldap function fails - it returns APR_EGENERIC
> and we call apr_ldap_get_last_error() to get a generic error structure,
> which we then pass into apr_err_generic_decode() and get a string with
> all the details. More complex than a simple int? Yes. Useful? Yes.

That's three steps, it could be just one.

Figuring out the threading implications of making the error handling non 
atomic may also be a bit of a nightmare.


View raw message