0

在使用 PySVN 的导出操作期间,我遇到了一个异常:

ClientError: ('', [('', 200015)])

推测此错误代码是svn_error_codes.h中定义的错误代码之一。但是……哪一个?以及如何找到此错误的文本描述?

4

1 回答 1

1

通过源代码搜索200015我得到

subversion/bindings/javahl/src/org/tigris/subversion/javahl/ErrorCodes.java:    public static final int cancelled = 200015;
subversion/tests/cmdline/svntest/err.py:CANCELLED = 200015

这映射到 svn_error_codes.h 中的这段代码:

#define SVN_ERR_CATEGORY_SIZE 5000
[...]
#define SVN_ERR_MISC_CATEGORY_START     (APR_OS_START_USERERR \
                                     + (16 * SVN_ERR_CATEGORY_SIZE))
[...]
SVN_ERRDEF(SVN_ERR_CANCELLED,
    SVN_ERR_MISC_CATEGORY_START + 15,
    "The operation was interrupted")

的值APR_OS_START_USERERR似乎在 APR 中定义。我没有找到现成的值,但是值应该是(通过向后计算)120000。

于 2011-11-01T10:06:01.910 回答