[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Generating messages for APR_OS_START_USERR-range codes

From: Ben Collins-Sussman <sussman_at_newton.collab.net>
Date: 2000-08-23 01:50:10 CEST

Jim Blandy <jimb@savonarola.red-bean.com> writes:

> If I understand things correctly, error values in the range
> APR_OS_START_USEERR to APR_OS_START_USEERR + 499 are available for use
> by the application using APR.
>

Yes.

> What's the appropriate way to provide messages for those error codes?
> Is there any way to make apr_strerror return something helpful for a
> user-defined error code? Or is the user's error-handling code
> supposed to check for its own error values before calling
> apr_strerror?

Funny you should mention that... Karl and I were *just* talking about
this issue today. Notice that we just changed svn_handle_error() so
that it would bother to differentiate between a general APR error
vs. a SVN-specific error. But the APR-error section has its own
apr_strerror() routine. Perhaps we should imitate with our own
svn_strerror()... just look up the svn errorcode in a static array of
strings.
Received on Sat Oct 21 14:36:07 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.