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

Re: Error codes for date operations

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-06-19 22:01:17 CEST

Nuutti Kotivuori <naked@iki.fi> writes:
> I'll ask this directly now, since I really can't get the hang of how
> subversions error codes should be really decided.
>
> What would be a good error code for svn_time_from_nts returned
> error. That is, what would be the error code when an invalid date is
> passed to the date string to time conversion function?
>
> Should it be SVN_ERR_INCORRECT_PARAMS? Or is that for errors in
> parameters themselves, not their interpretation? Or is there something
> else?
>
> If a new error code is in order, should it be grouped into some
> libsvn_subr error codes group? Or just added among the main errors?

I'm not sure it matters very much. If no existing error code jumps
out at you as being The Right Choice, just create a new one. The most
important thing is to have as many unambiguous identifiers as we need;
keeping them organized in some predictable way is secondary :-). (Of
course, if you see an obvious category to put it in, then that's
great.)

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 19 22:08:31 2002

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