apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: apr-util + LDAP: How to handle status codes
Date Thu, 02 Aug 2001 02:56:05 GMT
On Wednesday 01 August 2001 08:09, 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.

It doesn't make any sense to have a single library try to implement a strerror like call
for everything.  The application knows what kind of function it just called, so it knows
the correct strerror function to call.

Ryan
_____________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
Covalent Technologies			rbb@covalent.net
-----------------------------------------------------------------------------

Mime
View raw message