Re: error codes in client code
From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2002-01-28 17:48:19 CET
On 28 Jan 2002, Karl Fogel wrote:
> You know, I have to admit I wonder if a client (in particular, our
The "error system" it would have is just its own set of error codes. It would
> But the client itself has no callers. Can't it just always return an
The current client code calls error_create() (counting... ) some 25 times at
> And on the rare occasions when it needs to throw an error out of whole
Good question. In general I don't think that the error code is what matters
But it might still be good reasons to have error codes. For i18n-reasons for
> > 2. The errors currently named SVN_ERR_CL_* in the svn_error_codes.h should
Yes.
> In your client_errors.h below, you currently use SVN_ERR_CL_.
Uh, I can't even keep things apart myself. :-) They would need to be changed
> (This file lives in subversion/clients/cmdline/, right?)
Right.
> > This is the first draft of 'client_errors.h'. This would need to get more
[snip]
> > #define SVN_ERROR_START \
[snip]
> I'm a little confused. Isn't this going to redefine the SVN_ERROR_START
I ripped out the same method the svn_error_codes.h file is already using, and
-- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 21 14:37:00 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.