apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: apr-util + LDAP: How to handle status codes
Date Wed, 01 Aug 2001 16:43:13 GMT
On Wed, Aug 01, 2001 at 05:09:03PM +0200, Graham Leggett wrote:
> Ian Holsman wrote:
> 
> > I mentioned this a while back
> > (as I too would like 1 apr_strerror to register callbacks) but
> > the consensus was that each library should take care of it self
> 
> This is yucky - often you want a generic error handling that will print
> an error regardless of whether it originated in the OS, or some other
> library.

While I think rbb had some suggestion for handling extension of APR's
error codes (did you?), on retrospect, it is probably better just to 
have your own APR_LDAP_ERROR_* #defines.  And, your own
apr_ldap_strtoerror.  

I can't think of a better solution right now.  -- justin


Mime
View raw message