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

SVN (numeric) error codes

From: Jason Heeris <jason.heeris_at_gmail.com>
Date: Tue, 26 Oct 2010 11:51:16 +0800

I'm using PySVN to manipulate a working copy, and I'd like to do
sensible things on error conditions. This involves differentiating
between the errors that could occur — I'd like to do something
different for "File already exists" than, say, "Repository on fire".
As far as I can see, the best way to do this is to use the numeric
error code supplied with the exception[1]. According to the PySVN
docs:

  arg[1] is set to a list of tuples containing the message string and
the error code. The error code values are defined by SVN and APR.

So...

  1. Is there a list of these error codes anywhere? The only thing
I've found is the documentation for a header file[2], which is not
hugely helpful.
  2. Will the error codes remain consistent with future versions of SVN?

[1] http://pysvn.tigris.org/docs/pysvn_prog_ref.html#pysvn_clienterror
[2] http://svn.collab.net/svn-doxygen/svn__error__codes_8h.html

Thanks,
Jason

(Please CC me on replies.)
Received on 2010-10-26 07:19:28 CEST

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

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