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.)

Reply via email to