GME  13
svn_error_codes.h
Go to the documentation of this file.
00001 
00027 /* What's going on here?
00028 
00029    In order to define error codes and their associated description
00030    strings in the same place, we overload the SVN_ERRDEF() macro with
00031    two definitions below.  Both take two arguments, an error code name
00032    and a description string.  One definition of the macro just throws
00033    away the string and defines enumeration constants using the error
00034    code names -- that definition is used by the header file that
00035    exports error codes to the rest of Subversion.  The other
00036    definition creates a static table mapping the enum codes to their
00037    corresponding strings -- that definition is used by the C file that
00038    implements svn_strerror().
00039 
00040    The header and C files both include this file, using #defines to
00041    control which version of the macro they get.
00042 */
00043 
00044 
00045 /* Process this file if we're building an error array, or if we have
00046    not defined the enumerated constants yet.  */
00047 #if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED)
00048 
00049 /* Note: despite lacking double underscores in its name, the macro
00050    SVN_ERROR_BUILD_ARRAY is an implementation detail of Subversion and not
00051    a public API. */
00052 
00053 
00054 #include <apr_errno.h>     /* APR's error system */
00055 
00056 #ifdef __cplusplus
00057 extern "C" {
00058 #endif /* __cplusplus */
00059 
00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00061 
00062 #if defined(SVN_ERROR_BUILD_ARRAY)
00063 
00064 #define SVN_ERROR_START \
00065         static const err_defn error_table[] = { \
00066           { SVN_WARNING, "SVN_WARNING", "Warning" },
00067 #define SVN_ERRDEF(num, offset, str) { num, #num, str },
00068 #define SVN_ERROR_END { 0, NULL, NULL } };
00069 
00070 #elif !defined(SVN_ERROR_ENUM_DEFINED)
00071 
00072 #define SVN_ERROR_START \
00073         typedef enum svn_errno_t { \
00074           SVN_WARNING = APR_OS_START_USERERR + 1,
00075 #define SVN_ERRDEF(num, offset, str)  num = offset,
00076 #define SVN_ERROR_END SVN_ERR_LAST } svn_errno_t;
00077 
00078 #define SVN_ERROR_ENUM_DEFINED
00079 
00080 #endif
00081 
00082 /* Define custom Subversion error numbers, in the range reserved for
00083    that in APR: from APR_OS_START_USERERR to APR_OS_START_SYSERR (see
00084    apr_errno.h).
00085 
00086    Error numbers are divided into categories of up to 5000 errors
00087    each.  Since we're dividing up the APR user error space, which has
00088    room for 500,000 errors, we can have up to 100 categories.
00089    Categories are fixed-size; if a category has fewer than 5000
00090    errors, then it just ends with a range of unused numbers.
00091 
00092    To maintain binary compatibility, please observe these guidelines:
00093 
00094       - When adding a new error, always add on the end of the
00095         appropriate category, so that the real values of existing
00096         errors are not changed.
00097 
00098       - When deleting an error, leave a placeholder comment indicating
00099         the offset, again so that the values of other errors are not
00100         perturbed.
00101 */
00102 
00103 #define SVN_ERR_CATEGORY_SIZE 5000
00104 
00105 /* Leave one category of room at the beginning, for SVN_WARNING and
00106    any other such beasts we might create in the future. */
00107 #define SVN_ERR_BAD_CATEGORY_START      (APR_OS_START_USERERR \
00108                                          + ( 1 * SVN_ERR_CATEGORY_SIZE))
00109 #define SVN_ERR_XML_CATEGORY_START      (APR_OS_START_USERERR \
00110                                          + ( 2 * SVN_ERR_CATEGORY_SIZE))
00111 #define SVN_ERR_IO_CATEGORY_START       (APR_OS_START_USERERR \
00112                                          + ( 3 * SVN_ERR_CATEGORY_SIZE))
00113 #define SVN_ERR_STREAM_CATEGORY_START   (APR_OS_START_USERERR \
00114                                          + ( 4 * SVN_ERR_CATEGORY_SIZE))
00115 #define SVN_ERR_NODE_CATEGORY_START     (APR_OS_START_USERERR \
00116                                          + ( 5 * SVN_ERR_CATEGORY_SIZE))
00117 #define SVN_ERR_ENTRY_CATEGORY_START    (APR_OS_START_USERERR \
00118                                          + ( 6 * SVN_ERR_CATEGORY_SIZE))
00119 #define SVN_ERR_WC_CATEGORY_START       (APR_OS_START_USERERR \
00120                                          + ( 7 * SVN_ERR_CATEGORY_SIZE))
00121 #define SVN_ERR_FS_CATEGORY_START       (APR_OS_START_USERERR \
00122                                          + ( 8 * SVN_ERR_CATEGORY_SIZE))
00123 #define SVN_ERR_REPOS_CATEGORY_START    (APR_OS_START_USERERR \
00124                                          + ( 9 * SVN_ERR_CATEGORY_SIZE))
00125 #define SVN_ERR_RA_CATEGORY_START       (APR_OS_START_USERERR \
00126                                          + (10 * SVN_ERR_CATEGORY_SIZE))
00127 #define SVN_ERR_RA_DAV_CATEGORY_START   (APR_OS_START_USERERR \
00128                                          + (11 * SVN_ERR_CATEGORY_SIZE))
00129 #define SVN_ERR_RA_LOCAL_CATEGORY_START (APR_OS_START_USERERR \
00130                                          + (12 * SVN_ERR_CATEGORY_SIZE))
00131 #define SVN_ERR_SVNDIFF_CATEGORY_START  (APR_OS_START_USERERR \
00132                                          + (13 * SVN_ERR_CATEGORY_SIZE))
00133 #define SVN_ERR_APMOD_CATEGORY_START    (APR_OS_START_USERERR \
00134                                          + (14 * SVN_ERR_CATEGORY_SIZE))
00135 #define SVN_ERR_CLIENT_CATEGORY_START   (APR_OS_START_USERERR \
00136                                          + (15 * SVN_ERR_CATEGORY_SIZE))
00137 #define SVN_ERR_MISC_CATEGORY_START     (APR_OS_START_USERERR \
00138                                          + (16 * SVN_ERR_CATEGORY_SIZE))
00139 #define SVN_ERR_CL_CATEGORY_START       (APR_OS_START_USERERR \
00140                                          + (17 * SVN_ERR_CATEGORY_SIZE))
00141 #define SVN_ERR_RA_SVN_CATEGORY_START   (APR_OS_START_USERERR \
00142                                          + (18 * SVN_ERR_CATEGORY_SIZE))
00143 #define SVN_ERR_AUTHN_CATEGORY_START    (APR_OS_START_USERERR \
00144                                          + (19 * SVN_ERR_CATEGORY_SIZE))
00145 #define SVN_ERR_AUTHZ_CATEGORY_START    (APR_OS_START_USERERR \
00146                                          + (20 * SVN_ERR_CATEGORY_SIZE))
00147 #define SVN_ERR_DIFF_CATEGORY_START     (APR_OS_START_USERERR \
00148                                          + (21 * SVN_ERR_CATEGORY_SIZE))
00149 #define SVN_ERR_RA_SERF_CATEGORY_START  (APR_OS_START_USERERR \
00150                                          + (22 * SVN_ERR_CATEGORY_SIZE))
00151 #define SVN_ERR_MALFUNC_CATEGORY_START  (APR_OS_START_USERERR \
00152                                          + (23 * SVN_ERR_CATEGORY_SIZE))
00153 
00154 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00155 
00158 SVN_ERROR_START
00159 
00160   /* validation ("BAD_FOO") errors */
00161 
00162   SVN_ERRDEF(SVN_ERR_BAD_CONTAINING_POOL,
00163              SVN_ERR_BAD_CATEGORY_START + 0,
00164              "Bad parent pool passed to svn_make_pool()")
00165 
00166   SVN_ERRDEF(SVN_ERR_BAD_FILENAME,
00167              SVN_ERR_BAD_CATEGORY_START + 1,
00168              "Bogus filename")
00169 
00170   SVN_ERRDEF(SVN_ERR_BAD_URL,
00171              SVN_ERR_BAD_CATEGORY_START + 2,
00172              "Bogus URL")
00173 
00174   SVN_ERRDEF(SVN_ERR_BAD_DATE,
00175              SVN_ERR_BAD_CATEGORY_START + 3,
00176              "Bogus date")
00177 
00178   SVN_ERRDEF(SVN_ERR_BAD_MIME_TYPE,
00179              SVN_ERR_BAD_CATEGORY_START + 4,
00180              "Bogus mime-type")
00181 
00188   SVN_ERRDEF(SVN_ERR_BAD_PROPERTY_VALUE,
00189              SVN_ERR_BAD_CATEGORY_START + 5,
00190              "Wrong or unexpected property value")
00191 
00192   SVN_ERRDEF(SVN_ERR_BAD_VERSION_FILE_FORMAT,
00193              SVN_ERR_BAD_CATEGORY_START + 6,
00194              "Version file format not correct")
00195 
00196   SVN_ERRDEF(SVN_ERR_BAD_RELATIVE_PATH,
00197              SVN_ERR_BAD_CATEGORY_START + 7,
00198              "Path is not an immediate child of the specified directory")
00199 
00200   SVN_ERRDEF(SVN_ERR_BAD_UUID,
00201              SVN_ERR_BAD_CATEGORY_START + 8,
00202              "Bogus UUID")
00203 
00205   SVN_ERRDEF(SVN_ERR_BAD_CONFIG_VALUE,
00206              SVN_ERR_BAD_CATEGORY_START + 9,
00207              "Invalid configuration value")
00208 
00209   SVN_ERRDEF(SVN_ERR_BAD_SERVER_SPECIFICATION,
00210              SVN_ERR_BAD_CATEGORY_START + 10,
00211              "Bogus server specification")
00212 
00213   SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_KIND,
00214              SVN_ERR_BAD_CATEGORY_START + 11,
00215              "Unsupported checksum type")
00216 
00217   SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_PARSE,
00218              SVN_ERR_BAD_CATEGORY_START + 12,
00219              "Invalid character in hex checksum")
00220 
00222   SVN_ERRDEF(SVN_ERR_BAD_TOKEN,
00223              SVN_ERR_BAD_CATEGORY_START + 13,
00224              "Unknown string value of token")
00225 
00227   SVN_ERRDEF(SVN_ERR_BAD_CHANGELIST_NAME,
00228              SVN_ERR_BAD_CATEGORY_START + 14,
00229              "Invalid changelist name")
00230 
00232   SVN_ERRDEF(SVN_ERR_BAD_ATOMIC,
00233              SVN_ERR_BAD_CATEGORY_START + 15,
00234              "Invalid atomic")
00235 
00236   /* xml errors */
00237 
00238   SVN_ERRDEF(SVN_ERR_XML_ATTRIB_NOT_FOUND,
00239              SVN_ERR_XML_CATEGORY_START + 0,
00240              "No such XML tag attribute")
00241 
00242   SVN_ERRDEF(SVN_ERR_XML_MISSING_ANCESTRY,
00243              SVN_ERR_XML_CATEGORY_START + 1,
00244              "<delta-pkg> is missing ancestry")
00245 
00246   SVN_ERRDEF(SVN_ERR_XML_UNKNOWN_ENCODING,
00247              SVN_ERR_XML_CATEGORY_START + 2,
00248              "Unrecognized binary data encoding; can't decode")
00249 
00250   SVN_ERRDEF(SVN_ERR_XML_MALFORMED,
00251              SVN_ERR_XML_CATEGORY_START + 3,
00252              "XML data was not well-formed")
00253 
00254   SVN_ERRDEF(SVN_ERR_XML_UNESCAPABLE_DATA,
00255              SVN_ERR_XML_CATEGORY_START + 4,
00256              "Data cannot be safely XML-escaped")
00257 
00258   /* io errors */
00259 
00260   SVN_ERRDEF(SVN_ERR_IO_INCONSISTENT_EOL,
00261              SVN_ERR_IO_CATEGORY_START + 0,
00262              "Inconsistent line ending style")
00263 
00264   SVN_ERRDEF(SVN_ERR_IO_UNKNOWN_EOL,
00265              SVN_ERR_IO_CATEGORY_START + 1,
00266              "Unrecognized line ending style")
00267 
00269   SVN_ERRDEF(SVN_ERR_IO_CORRUPT_EOL,
00270              SVN_ERR_IO_CATEGORY_START + 2,
00271              "Line endings other than expected")
00272 
00273   SVN_ERRDEF(SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
00274              SVN_ERR_IO_CATEGORY_START + 3,
00275              "Ran out of unique names")
00276 
00278   SVN_ERRDEF(SVN_ERR_IO_PIPE_FRAME_ERROR,
00279              SVN_ERR_IO_CATEGORY_START + 4,
00280              "Framing error in pipe protocol")
00281 
00283   SVN_ERRDEF(SVN_ERR_IO_PIPE_READ_ERROR,
00284              SVN_ERR_IO_CATEGORY_START + 5,
00285              "Read error in pipe")
00286 
00287   SVN_ERRDEF(SVN_ERR_IO_WRITE_ERROR,
00288              SVN_ERR_IO_CATEGORY_START + 6,
00289              "Write error")
00290 
00292   SVN_ERRDEF(SVN_ERR_IO_PIPE_WRITE_ERROR,
00293              SVN_ERR_IO_CATEGORY_START + 7,
00294              "Write error in pipe")
00295 
00296   /* stream errors */
00297 
00298   SVN_ERRDEF(SVN_ERR_STREAM_UNEXPECTED_EOF,
00299              SVN_ERR_STREAM_CATEGORY_START + 0,
00300              "Unexpected EOF on stream")
00301 
00302   SVN_ERRDEF(SVN_ERR_STREAM_MALFORMED_DATA,
00303              SVN_ERR_STREAM_CATEGORY_START + 1,
00304              "Malformed stream data")
00305 
00306   SVN_ERRDEF(SVN_ERR_STREAM_UNRECOGNIZED_DATA,
00307              SVN_ERR_STREAM_CATEGORY_START + 2,
00308              "Unrecognized stream data")
00309 
00311   SVN_ERRDEF(SVN_ERR_STREAM_SEEK_NOT_SUPPORTED,
00312              SVN_ERR_STREAM_CATEGORY_START + 3,
00313              "Stream doesn't support seeking")
00314 
00315   /* node errors */
00316 
00317   SVN_ERRDEF(SVN_ERR_NODE_UNKNOWN_KIND,
00318              SVN_ERR_NODE_CATEGORY_START + 0,
00319              "Unknown svn_node_kind")
00320 
00321   SVN_ERRDEF(SVN_ERR_NODE_UNEXPECTED_KIND,
00322              SVN_ERR_NODE_CATEGORY_START + 1,
00323              "Unexpected node kind found")
00324 
00325   /* entry errors */
00326 
00327   SVN_ERRDEF(SVN_ERR_ENTRY_NOT_FOUND,
00328              SVN_ERR_ENTRY_CATEGORY_START + 0,
00329              "Can't find an entry")
00330 
00331   /* UNUSED error slot:                    + 1 */
00332 
00333   SVN_ERRDEF(SVN_ERR_ENTRY_EXISTS,
00334              SVN_ERR_ENTRY_CATEGORY_START + 2,
00335              "Entry already exists")
00336 
00337   SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_REVISION,
00338              SVN_ERR_ENTRY_CATEGORY_START + 3,
00339              "Entry has no revision")
00340 
00341   SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_URL,
00342              SVN_ERR_ENTRY_CATEGORY_START + 4,
00343              "Entry has no URL")
00344 
00345   SVN_ERRDEF(SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
00346              SVN_ERR_ENTRY_CATEGORY_START + 5,
00347              "Entry has an invalid attribute")
00348 
00349   SVN_ERRDEF(SVN_ERR_ENTRY_FORBIDDEN,
00350              SVN_ERR_ENTRY_CATEGORY_START + 6,
00351              "Can't create an entry for a forbidden name")
00352 
00353   /* wc errors */
00354 
00355   SVN_ERRDEF(SVN_ERR_WC_OBSTRUCTED_UPDATE,
00356              SVN_ERR_WC_CATEGORY_START + 0,
00357              "Obstructed update")
00358 
00360   SVN_ERRDEF(SVN_ERR_WC_UNWIND_MISMATCH,
00361              SVN_ERR_WC_CATEGORY_START + 1,
00362              "Mismatch popping the WC unwind stack")
00363 
00365   SVN_ERRDEF(SVN_ERR_WC_UNWIND_EMPTY,
00366              SVN_ERR_WC_CATEGORY_START + 2,
00367              "Attempt to pop empty WC unwind stack")
00368 
00370   SVN_ERRDEF(SVN_ERR_WC_UNWIND_NOT_EMPTY,
00371              SVN_ERR_WC_CATEGORY_START + 3,
00372              "Attempt to unlock with non-empty unwind stack")
00373 
00374   SVN_ERRDEF(SVN_ERR_WC_LOCKED,
00375              SVN_ERR_WC_CATEGORY_START + 4,
00376              "Attempted to lock an already-locked dir")
00377 
00378   SVN_ERRDEF(SVN_ERR_WC_NOT_LOCKED,
00379              SVN_ERR_WC_CATEGORY_START + 5,
00380              "Working copy not locked; this is probably a bug, please report")
00381 
00383   SVN_ERRDEF(SVN_ERR_WC_INVALID_LOCK,
00384              SVN_ERR_WC_CATEGORY_START + 6,
00385              "Invalid lock")
00386 
00389   SVN_ERRDEF(SVN_ERR_WC_NOT_WORKING_COPY,
00390              SVN_ERR_WC_CATEGORY_START + 7,
00391              "Path is not a working copy directory")
00392 
00395   SVN_ERRDEF(SVN_ERR_WC_NOT_DIRECTORY,
00396              SVN_ERR_WC_NOT_WORKING_COPY,
00397              "Path is not a working copy directory")
00398 
00399   SVN_ERRDEF(SVN_ERR_WC_NOT_FILE,
00400              SVN_ERR_WC_CATEGORY_START + 8,
00401              "Path is not a working copy file")
00402 
00403   SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG,
00404              SVN_ERR_WC_CATEGORY_START + 9,
00405              "Problem running log")
00406 
00407   SVN_ERRDEF(SVN_ERR_WC_PATH_NOT_FOUND,
00408              SVN_ERR_WC_CATEGORY_START + 10,
00409              "Can't find a working copy path")
00410 
00411   SVN_ERRDEF(SVN_ERR_WC_NOT_UP_TO_DATE,
00412              SVN_ERR_WC_CATEGORY_START + 11,
00413              "Working copy is not up-to-date")
00414 
00415   SVN_ERRDEF(SVN_ERR_WC_LEFT_LOCAL_MOD,
00416              SVN_ERR_WC_CATEGORY_START + 12,
00417              "Left locally modified or unversioned files")
00418 
00419   SVN_ERRDEF(SVN_ERR_WC_SCHEDULE_CONFLICT,
00420              SVN_ERR_WC_CATEGORY_START + 13,
00421              "Unmergeable scheduling requested on an entry")
00422 
00423   SVN_ERRDEF(SVN_ERR_WC_PATH_FOUND,
00424              SVN_ERR_WC_CATEGORY_START + 14,
00425              "Found a working copy path")
00426 
00427   SVN_ERRDEF(SVN_ERR_WC_FOUND_CONFLICT,
00428              SVN_ERR_WC_CATEGORY_START + 15,
00429              "A conflict in the working copy obstructs the current operation")
00430 
00431   SVN_ERRDEF(SVN_ERR_WC_CORRUPT,
00432              SVN_ERR_WC_CATEGORY_START + 16,
00433              "Working copy is corrupt")
00434 
00435   SVN_ERRDEF(SVN_ERR_WC_CORRUPT_TEXT_BASE,
00436              SVN_ERR_WC_CATEGORY_START + 17,
00437              "Working copy text base is corrupt")
00438 
00439   SVN_ERRDEF(SVN_ERR_WC_NODE_KIND_CHANGE,
00440              SVN_ERR_WC_CATEGORY_START + 18,
00441              "Cannot change node kind")
00442 
00443   SVN_ERRDEF(SVN_ERR_WC_INVALID_OP_ON_CWD,
00444              SVN_ERR_WC_CATEGORY_START + 19,
00445              "Invalid operation on the current working directory")
00446 
00447   SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG_START,
00448              SVN_ERR_WC_CATEGORY_START + 20,
00449              "Problem on first log entry in a working copy")
00450 
00451   SVN_ERRDEF(SVN_ERR_WC_UNSUPPORTED_FORMAT,
00452              SVN_ERR_WC_CATEGORY_START + 21,
00453              "Unsupported working copy format")
00454 
00455   SVN_ERRDEF(SVN_ERR_WC_BAD_PATH,
00456              SVN_ERR_WC_CATEGORY_START + 22,
00457              "Path syntax not supported in this context")
00458 
00460   SVN_ERRDEF(SVN_ERR_WC_INVALID_SCHEDULE,
00461              SVN_ERR_WC_CATEGORY_START + 23,
00462              "Invalid schedule")
00463 
00465   SVN_ERRDEF(SVN_ERR_WC_INVALID_RELOCATION,
00466              SVN_ERR_WC_CATEGORY_START + 24,
00467              "Invalid relocation")
00468 
00470   SVN_ERRDEF(SVN_ERR_WC_INVALID_SWITCH,
00471              SVN_ERR_WC_CATEGORY_START + 25,
00472              "Invalid switch")
00473 
00475   SVN_ERRDEF(SVN_ERR_WC_MISMATCHED_CHANGELIST,
00476              SVN_ERR_WC_CATEGORY_START + 26,
00477              "Changelist doesn't match")
00478 
00480   SVN_ERRDEF(SVN_ERR_WC_CONFLICT_RESOLVER_FAILURE,
00481              SVN_ERR_WC_CATEGORY_START + 27,
00482              "Conflict resolution failed")
00483 
00484   SVN_ERRDEF(SVN_ERR_WC_COPYFROM_PATH_NOT_FOUND,
00485              SVN_ERR_WC_CATEGORY_START + 28,
00486              "Failed to locate 'copyfrom' path in working copy")
00487 
00492   SVN_ERRDEF(SVN_ERR_WC_CHANGELIST_MOVE,
00493              SVN_ERR_WC_CATEGORY_START + 29,
00494              "Moving a path from one changelist to another")
00495 
00497   SVN_ERRDEF(SVN_ERR_WC_CANNOT_DELETE_FILE_EXTERNAL,
00498              SVN_ERR_WC_CATEGORY_START + 30,
00499              "Cannot delete a file external")
00500 
00502   SVN_ERRDEF(SVN_ERR_WC_CANNOT_MOVE_FILE_EXTERNAL,
00503              SVN_ERR_WC_CATEGORY_START + 31,
00504              "Cannot move a file external")
00505 
00507   SVN_ERRDEF(SVN_ERR_WC_DB_ERROR,
00508              SVN_ERR_WC_CATEGORY_START + 32,
00509              "Something's amiss with the wc sqlite database")
00510 
00512   SVN_ERRDEF(SVN_ERR_WC_MISSING,
00513              SVN_ERR_WC_CATEGORY_START + 33,
00514              "The working copy is missing")
00515 
00517   SVN_ERRDEF(SVN_ERR_WC_NOT_SYMLINK,
00518              SVN_ERR_WC_CATEGORY_START + 34,
00519              "The specified node is not a symlink")
00520 
00522   SVN_ERRDEF(SVN_ERR_WC_PATH_UNEXPECTED_STATUS,
00523              SVN_ERR_WC_CATEGORY_START + 35,
00524              "The specified path has an unexpected status")
00525 
00527   SVN_ERRDEF(SVN_ERR_WC_UPGRADE_REQUIRED,
00528              SVN_ERR_WC_CATEGORY_START + 36,
00529              "The working copy needs to be upgraded")
00530 
00532   SVN_ERRDEF(SVN_ERR_WC_CLEANUP_REQUIRED,
00533              SVN_ERR_WC_CATEGORY_START + 37,
00534              "Previous operation has not finished; "
00535              "run 'cleanup' if it was interrupted")
00536 
00538   SVN_ERRDEF(SVN_ERR_WC_INVALID_OPERATION_DEPTH,
00539              SVN_ERR_WC_CATEGORY_START + 38,
00540              "The operation cannot be performed with the specified depth")
00541 
00543   SVN_ERRDEF(SVN_ERR_WC_PATH_ACCESS_DENIED,
00544              SVN_ERR_WC_CATEGORY_START + 39,
00545              "Couldn't open a working copy file because access was denied")
00546 
00548   SVN_ERRDEF(SVN_ERR_WC_MIXED_REVISIONS,
00549              SVN_ERR_WC_CATEGORY_START + 40,
00550              "Mixed-revision working copy was found but not expected")
00551 
00553   SVN_ERRDEF(SVN_ERR_WC_DUPLICATE_EXTERNALS_TARGET,
00554              SVN_ERR_WC_CATEGORY_START + 41,
00555              "Duplicate targets in svn:externals property")
00556 
00557   /* fs errors */
00558 
00559   SVN_ERRDEF(SVN_ERR_FS_GENERAL,
00560              SVN_ERR_FS_CATEGORY_START + 0,
00561              "General filesystem error")
00562 
00563   SVN_ERRDEF(SVN_ERR_FS_CLEANUP,
00564              SVN_ERR_FS_CATEGORY_START + 1,
00565              "Error closing filesystem")
00566 
00567   SVN_ERRDEF(SVN_ERR_FS_ALREADY_OPEN,
00568              SVN_ERR_FS_CATEGORY_START + 2,
00569              "Filesystem is already open")
00570 
00571   SVN_ERRDEF(SVN_ERR_FS_NOT_OPEN,
00572              SVN_ERR_FS_CATEGORY_START + 3,
00573              "Filesystem is not open")
00574 
00575   SVN_ERRDEF(SVN_ERR_FS_CORRUPT,
00576              SVN_ERR_FS_CATEGORY_START + 4,
00577              "Filesystem is corrupt")
00578 
00579   SVN_ERRDEF(SVN_ERR_FS_PATH_SYNTAX,
00580              SVN_ERR_FS_CATEGORY_START + 5,
00581              "Invalid filesystem path syntax")
00582 
00583   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REVISION,
00584              SVN_ERR_FS_CATEGORY_START + 6,
00585              "Invalid filesystem revision number")
00586 
00587   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_TRANSACTION,
00588              SVN_ERR_FS_CATEGORY_START + 7,
00589              "Invalid filesystem transaction name")
00590 
00591   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_ENTRY,
00592              SVN_ERR_FS_CATEGORY_START + 8,
00593              "Filesystem directory has no such entry")
00594 
00595   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REPRESENTATION,
00596              SVN_ERR_FS_CATEGORY_START + 9,
00597              "Filesystem has no such representation")
00598 
00599   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_STRING,
00600              SVN_ERR_FS_CATEGORY_START + 10,
00601              "Filesystem has no such string")
00602 
00603   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_COPY,
00604              SVN_ERR_FS_CATEGORY_START + 11,
00605              "Filesystem has no such copy")
00606 
00607   SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
00608              SVN_ERR_FS_CATEGORY_START + 12,
00609              "The specified transaction is not mutable")
00610 
00611   SVN_ERRDEF(SVN_ERR_FS_NOT_FOUND,
00612              SVN_ERR_FS_CATEGORY_START + 13,
00613              "Filesystem has no item")
00614 
00615   SVN_ERRDEF(SVN_ERR_FS_ID_NOT_FOUND,
00616              SVN_ERR_FS_CATEGORY_START + 14,
00617              "Filesystem has no such node-rev-id")
00618 
00619   SVN_ERRDEF(SVN_ERR_FS_NOT_ID,
00620              SVN_ERR_FS_CATEGORY_START + 15,
00621              "String does not represent a node or node-rev-id")
00622 
00623   SVN_ERRDEF(SVN_ERR_FS_NOT_DIRECTORY,
00624              SVN_ERR_FS_CATEGORY_START + 16,
00625              "Name does not refer to a filesystem directory")
00626 
00627   SVN_ERRDEF(SVN_ERR_FS_NOT_FILE,
00628              SVN_ERR_FS_CATEGORY_START + 17,
00629              "Name does not refer to a filesystem file")
00630 
00631   SVN_ERRDEF(SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
00632              SVN_ERR_FS_CATEGORY_START + 18,
00633              "Name is not a single path component")
00634 
00635   SVN_ERRDEF(SVN_ERR_FS_NOT_MUTABLE,
00636              SVN_ERR_FS_CATEGORY_START + 19,
00637              "Attempt to change immutable filesystem node")
00638 
00639   SVN_ERRDEF(SVN_ERR_FS_ALREADY_EXISTS,
00640              SVN_ERR_FS_CATEGORY_START + 20,
00641              "Item already exists in filesystem")
00642 
00643   SVN_ERRDEF(SVN_ERR_FS_ROOT_DIR,
00644              SVN_ERR_FS_CATEGORY_START + 21,
00645              "Attempt to remove or recreate fs root dir")
00646 
00647   SVN_ERRDEF(SVN_ERR_FS_NOT_TXN_ROOT,
00648              SVN_ERR_FS_CATEGORY_START + 22,
00649              "Object is not a transaction root")
00650 
00651   SVN_ERRDEF(SVN_ERR_FS_NOT_REVISION_ROOT,
00652              SVN_ERR_FS_CATEGORY_START + 23,
00653              "Object is not a revision root")
00654 
00655   SVN_ERRDEF(SVN_ERR_FS_CONFLICT,
00656              SVN_ERR_FS_CATEGORY_START + 24,
00657              "Merge conflict during commit")
00658 
00659   SVN_ERRDEF(SVN_ERR_FS_REP_CHANGED,
00660              SVN_ERR_FS_CATEGORY_START + 25,
00661              "A representation vanished or changed between reads")
00662 
00663   SVN_ERRDEF(SVN_ERR_FS_REP_NOT_MUTABLE,
00664              SVN_ERR_FS_CATEGORY_START + 26,
00665              "Tried to change an immutable representation")
00666 
00667   SVN_ERRDEF(SVN_ERR_FS_MALFORMED_SKEL,
00668              SVN_ERR_FS_CATEGORY_START + 27,
00669              "Malformed skeleton data")
00670 
00671   SVN_ERRDEF(SVN_ERR_FS_TXN_OUT_OF_DATE,
00672              SVN_ERR_FS_CATEGORY_START + 28,
00673              "Transaction is out of date")
00674 
00675   SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB,
00676              SVN_ERR_FS_CATEGORY_START + 29,
00677              "Berkeley DB error")
00678 
00679   SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
00680              SVN_ERR_FS_CATEGORY_START + 30,
00681              "Berkeley DB deadlock error")
00682 
00683   SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_DEAD,
00684              SVN_ERR_FS_CATEGORY_START + 31,
00685              "Transaction is dead")
00686 
00687   SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_DEAD,
00688              SVN_ERR_FS_CATEGORY_START + 32,
00689              "Transaction is not dead")
00690 
00692   SVN_ERRDEF(SVN_ERR_FS_UNKNOWN_FS_TYPE,
00693              SVN_ERR_FS_CATEGORY_START + 33,
00694              "Unknown FS type")
00695 
00697   SVN_ERRDEF(SVN_ERR_FS_NO_USER,
00698              SVN_ERR_FS_CATEGORY_START + 34,
00699              "No user associated with filesystem")
00700 
00702   SVN_ERRDEF(SVN_ERR_FS_PATH_ALREADY_LOCKED,
00703              SVN_ERR_FS_CATEGORY_START + 35,
00704              "Path is already locked")
00705 
00707   SVN_ERRDEF(SVN_ERR_FS_PATH_NOT_LOCKED,
00708              SVN_ERR_FS_CATEGORY_START + 36,
00709              "Path is not locked")
00710 
00712   SVN_ERRDEF(SVN_ERR_FS_BAD_LOCK_TOKEN,
00713              SVN_ERR_FS_CATEGORY_START + 37,
00714              "Lock token is incorrect")
00715 
00717   SVN_ERRDEF(SVN_ERR_FS_NO_LOCK_TOKEN,
00718              SVN_ERR_FS_CATEGORY_START + 38,
00719              "No lock token provided")
00720 
00722   SVN_ERRDEF(SVN_ERR_FS_LOCK_OWNER_MISMATCH,
00723              SVN_ERR_FS_CATEGORY_START + 39,
00724              "Username does not match lock owner")
00725 
00727   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_LOCK,
00728              SVN_ERR_FS_CATEGORY_START + 40,
00729              "Filesystem has no such lock")
00730 
00732   SVN_ERRDEF(SVN_ERR_FS_LOCK_EXPIRED,
00733              SVN_ERR_FS_CATEGORY_START + 41,
00734              "Lock has expired")
00735 
00737   SVN_ERRDEF(SVN_ERR_FS_OUT_OF_DATE,
00738              SVN_ERR_FS_CATEGORY_START + 42,
00739              "Item is out of date")
00740 
00749   SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_FORMAT,
00750              SVN_ERR_FS_CATEGORY_START + 43,
00751              "Unsupported FS format")
00752 
00754   SVN_ERRDEF(SVN_ERR_FS_REP_BEING_WRITTEN,
00755              SVN_ERR_FS_CATEGORY_START + 44,
00756              "Representation is being written")
00757 
00759   SVN_ERRDEF(SVN_ERR_FS_TXN_NAME_TOO_LONG,
00760              SVN_ERR_FS_CATEGORY_START + 45,
00761              "The generated transaction name is too long")
00762 
00764   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_NODE_ORIGIN,
00765              SVN_ERR_FS_CATEGORY_START + 46,
00766              "Filesystem has no such node origin record")
00767 
00769   SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_UPGRADE,
00770              SVN_ERR_FS_CATEGORY_START + 47,
00771              "Filesystem upgrade is not supported")
00772 
00774   SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_CHECKSUM_REP,
00775              SVN_ERR_FS_CATEGORY_START + 48,
00776              "Filesystem has no such checksum-representation index record")
00777 
00779   SVN_ERRDEF(SVN_ERR_FS_PROP_BASEVALUE_MISMATCH,
00780              SVN_ERR_FS_CATEGORY_START + 49,
00781              "Property value in filesystem differs from the provided "
00782              "base value")
00783 
00785   SVN_ERRDEF(SVN_ERR_FS_INCORRECT_EDITOR_COMPLETION,
00786              SVN_ERR_FS_CATEGORY_START + 50,
00787              "The filesystem editor completion process was not followed")
00788 
00790   SVN_ERRDEF(SVN_ERR_FS_PACKED_REVPROP_READ_FAILURE,
00791              SVN_ERR_FS_CATEGORY_START + 51,
00792              "A packed revprop could not be read")
00793 
00795   SVN_ERRDEF(SVN_ERR_FS_REVPROP_CACHE_INIT_FAILURE,
00796              SVN_ERR_FS_CATEGORY_START + 52,
00797              "Could not initialize the revprop caching infrastructure.")
00798 
00799   /* repos errors */
00800 
00801   SVN_ERRDEF(SVN_ERR_REPOS_LOCKED,
00802              SVN_ERR_REPOS_CATEGORY_START + 0,
00803              "The repository is locked, perhaps for db recovery")
00804 
00805   SVN_ERRDEF(SVN_ERR_REPOS_HOOK_FAILURE,
00806              SVN_ERR_REPOS_CATEGORY_START + 1,
00807              "A repository hook failed")
00808 
00809   SVN_ERRDEF(SVN_ERR_REPOS_BAD_ARGS,
00810              SVN_ERR_REPOS_CATEGORY_START + 2,
00811              "Incorrect arguments supplied")
00812 
00813   SVN_ERRDEF(SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
00814              SVN_ERR_REPOS_CATEGORY_START + 3,
00815              "A report cannot be generated because no data was supplied")
00816 
00817   SVN_ERRDEF(SVN_ERR_REPOS_BAD_REVISION_REPORT,
00818              SVN_ERR_REPOS_CATEGORY_START + 4,
00819              "Bogus revision report")
00820 
00821   /* This is analogous to SVN_ERR_FS_UNSUPPORTED_FORMAT.  To avoid
00822    * confusion with "versions" (i.e., releases) of Subversion, we
00823    * started using the word "format" instead of "version".  However,
00824    * this error code's name predates that decision.
00825    */
00826   SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_VERSION,
00827              SVN_ERR_REPOS_CATEGORY_START + 5,
00828              "Unsupported repository version")
00829 
00830   SVN_ERRDEF(SVN_ERR_REPOS_DISABLED_FEATURE,
00831              SVN_ERR_REPOS_CATEGORY_START + 6,
00832              "Disabled repository feature")
00833 
00834   SVN_ERRDEF(SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
00835              SVN_ERR_REPOS_CATEGORY_START + 7,
00836              "Error running post-commit hook")
00837 
00839   SVN_ERRDEF(SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED,
00840              SVN_ERR_REPOS_CATEGORY_START + 8,
00841              "Error running post-lock hook")
00842 
00844   SVN_ERRDEF(SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED,
00845              SVN_ERR_REPOS_CATEGORY_START + 9,
00846              "Error running post-unlock hook")
00847 
00849   SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_UPGRADE,
00850              SVN_ERR_REPOS_CATEGORY_START + 10,
00851              "Repository upgrade is not supported")
00852 
00853   /* generic RA errors */
00854 
00855   SVN_ERRDEF(SVN_ERR_RA_ILLEGAL_URL,
00856              SVN_ERR_RA_CATEGORY_START + 0,
00857              "Bad URL passed to RA layer")
00858 
00859   SVN_ERRDEF(SVN_ERR_RA_NOT_AUTHORIZED,
00860              SVN_ERR_RA_CATEGORY_START + 1,
00861              "Authorization failed")
00862 
00863   SVN_ERRDEF(SVN_ERR_RA_UNKNOWN_AUTH,
00864              SVN_ERR_RA_CATEGORY_START + 2,
00865              "Unknown authorization method")
00866 
00867   SVN_ERRDEF(SVN_ERR_RA_NOT_IMPLEMENTED,
00868              SVN_ERR_RA_CATEGORY_START + 3,
00869              "Repository access method not implemented")
00870 
00871   SVN_ERRDEF(SVN_ERR_RA_OUT_OF_DATE,
00872              SVN_ERR_RA_CATEGORY_START + 4,
00873              "Item is out of date")
00874 
00875   SVN_ERRDEF(SVN_ERR_RA_NO_REPOS_UUID,
00876              SVN_ERR_RA_CATEGORY_START + 5,
00877              "Repository has no UUID")
00878 
00879   SVN_ERRDEF(SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
00880              SVN_ERR_RA_CATEGORY_START + 6,
00881              "Unsupported RA plugin ABI version")
00882 
00884   SVN_ERRDEF(SVN_ERR_RA_NOT_LOCKED,
00885              SVN_ERR_RA_CATEGORY_START + 7,
00886              "Path is not locked")
00887 
00889   SVN_ERRDEF(SVN_ERR_RA_PARTIAL_REPLAY_NOT_SUPPORTED,
00890              SVN_ERR_RA_CATEGORY_START + 8,
00891              "Server can only replay from the root of a repository")
00892 
00894   SVN_ERRDEF(SVN_ERR_RA_UUID_MISMATCH,
00895              SVN_ERR_RA_CATEGORY_START + 9,
00896              "Repository UUID does not match expected UUID")
00897 
00899   SVN_ERRDEF(SVN_ERR_RA_REPOS_ROOT_URL_MISMATCH,
00900              SVN_ERR_RA_CATEGORY_START + 10,
00901              "Repository root URL does not match expected root URL")
00902 
00904   SVN_ERRDEF(SVN_ERR_RA_SESSION_URL_MISMATCH,
00905              SVN_ERR_RA_CATEGORY_START + 11,
00906              "Session URL does not match expected session URL")
00907 
00909   SVN_ERRDEF(SVN_ERR_RA_CANNOT_CREATE_TUNNEL,
00910              SVN_ERR_RA_CATEGORY_START + 12,
00911              "Can't create tunnel")
00912 
00913   /* ra_dav errors */
00914 
00915   SVN_ERRDEF(SVN_ERR_RA_DAV_SOCK_INIT,
00916              SVN_ERR_RA_DAV_CATEGORY_START + 0,
00917              "RA layer failed to init socket layer")
00918 
00919   SVN_ERRDEF(SVN_ERR_RA_DAV_CREATING_REQUEST,
00920              SVN_ERR_RA_DAV_CATEGORY_START + 1,
00921              "RA layer failed to create HTTP request")
00922 
00923   SVN_ERRDEF(SVN_ERR_RA_DAV_REQUEST_FAILED,
00924              SVN_ERR_RA_DAV_CATEGORY_START + 2,
00925              "RA layer request failed")
00926 
00927   SVN_ERRDEF(SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
00928              SVN_ERR_RA_DAV_CATEGORY_START + 3,
00929              "RA layer didn't receive requested OPTIONS info")
00930 
00931   SVN_ERRDEF(SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
00932              SVN_ERR_RA_DAV_CATEGORY_START + 4,
00933              "RA layer failed to fetch properties")
00934 
00935   SVN_ERRDEF(SVN_ERR_RA_DAV_ALREADY_EXISTS,
00936              SVN_ERR_RA_DAV_CATEGORY_START + 5,
00937              "RA layer file already exists")
00938 
00942   SVN_ERRDEF(SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
00943              SVN_ERR_RA_DAV_CATEGORY_START + 6,
00944              "Invalid configuration value")
00945 
00949   SVN_ERRDEF(SVN_ERR_RA_DAV_PATH_NOT_FOUND,
00950              SVN_ERR_RA_DAV_CATEGORY_START + 7,
00951              "HTTP Path Not Found")
00952 
00953   SVN_ERRDEF(SVN_ERR_RA_DAV_PROPPATCH_FAILED,
00954              SVN_ERR_RA_DAV_CATEGORY_START + 8,
00955              "Failed to execute WebDAV PROPPATCH")
00956 
00958   SVN_ERRDEF(SVN_ERR_RA_DAV_MALFORMED_DATA,
00959              SVN_ERR_RA_DAV_CATEGORY_START + 9,
00960              "Malformed network data")
00961 
00963   SVN_ERRDEF(SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS,
00964              SVN_ERR_RA_DAV_CATEGORY_START + 10,
00965              "Unable to extract data from response header")
00966 
00968   SVN_ERRDEF(SVN_ERR_RA_DAV_RELOCATED,
00969              SVN_ERR_RA_DAV_CATEGORY_START + 11,
00970              "Repository has been moved")
00971 
00973   SVN_ERRDEF(SVN_ERR_RA_DAV_CONN_TIMEOUT,
00974              SVN_ERR_RA_DAV_CATEGORY_START + 12,
00975              "Connection timed out")
00976 
00978   SVN_ERRDEF(SVN_ERR_RA_DAV_FORBIDDEN,
00979              SVN_ERR_RA_DAV_CATEGORY_START + 13,
00980              "URL access forbidden for unknown reason")
00981 
00982   /* ra_local errors */
00983 
00984   SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
00985              SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
00986              "Couldn't find a repository")
00987 
00988   SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
00989              SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
00990              "Couldn't open a repository")
00991 
00992   /* svndiff errors */
00993 
00994   SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_HEADER,
00995              SVN_ERR_SVNDIFF_CATEGORY_START + 0,
00996              "Svndiff data has invalid header")
00997 
00998   SVN_ERRDEF(SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
00999              SVN_ERR_SVNDIFF_CATEGORY_START + 1,
01000              "Svndiff data contains corrupt window")
01001 
01002   SVN_ERRDEF(SVN_ERR_SVNDIFF_BACKWARD_VIEW,
01003              SVN_ERR_SVNDIFF_CATEGORY_START + 2,
01004              "Svndiff data contains backward-sliding source view")
01005 
01006   SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_OPS,
01007              SVN_ERR_SVNDIFF_CATEGORY_START + 3,
01008              "Svndiff data contains invalid instruction")
01009 
01010   SVN_ERRDEF(SVN_ERR_SVNDIFF_UNEXPECTED_END,
01011              SVN_ERR_SVNDIFF_CATEGORY_START + 4,
01012              "Svndiff data ends unexpectedly")
01013 
01014   SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA,
01015              SVN_ERR_SVNDIFF_CATEGORY_START + 5,
01016              "Svndiff compressed data is invalid")
01017 
01018   /* mod_dav_svn errors */
01019 
01020   SVN_ERRDEF(SVN_ERR_APMOD_MISSING_PATH_TO_FS,
01021              SVN_ERR_APMOD_CATEGORY_START + 0,
01022              "Apache has no path to an SVN filesystem")
01023 
01024   SVN_ERRDEF(SVN_ERR_APMOD_MALFORMED_URI,
01025              SVN_ERR_APMOD_CATEGORY_START + 1,
01026              "Apache got a malformed URI")
01027 
01028   SVN_ERRDEF(SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
01029              SVN_ERR_APMOD_CATEGORY_START + 2,
01030              "Activity not found")
01031 
01032   SVN_ERRDEF(SVN_ERR_APMOD_BAD_BASELINE,
01033              SVN_ERR_APMOD_CATEGORY_START + 3,
01034              "Baseline incorrect")
01035 
01036   SVN_ERRDEF(SVN_ERR_APMOD_CONNECTION_ABORTED,
01037              SVN_ERR_APMOD_CATEGORY_START + 4,
01038              "Input/output error")
01039 
01040   /* libsvn_client errors */
01041 
01042   SVN_ERRDEF(SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
01043              SVN_ERR_CLIENT_CATEGORY_START + 0,
01044              "A path under version control is needed for this operation")
01045 
01046   SVN_ERRDEF(SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
01047              SVN_ERR_CLIENT_CATEGORY_START + 1,
01048              "Repository access is needed for this operation")
01049 
01050   SVN_ERRDEF(SVN_ERR_CLIENT_BAD_REVISION,
01051              SVN_ERR_CLIENT_CATEGORY_START + 2,
01052              "Bogus revision information given")
01053 
01054   SVN_ERRDEF(SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
01055              SVN_ERR_CLIENT_CATEGORY_START + 3,
01056              "Attempting to commit to a URL more than once")
01057 
01058   SVN_ERRDEF(SVN_ERR_CLIENT_IS_BINARY_FILE,
01059              SVN_ERR_CLIENT_CATEGORY_START + 4,
01060              "Operation does not apply to binary file")
01061 
01062        /*### SVN_PROP_EXTERNALS needed to be replaced with "svn:externals"
01063          in order to get gettext translatable strings */
01064   SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
01065              SVN_ERR_CLIENT_CATEGORY_START + 5,
01066              "Format of an svn:externals property was invalid")
01067 
01068   SVN_ERRDEF(SVN_ERR_CLIENT_MODIFIED,
01069              SVN_ERR_CLIENT_CATEGORY_START + 6,
01070              "Attempting restricted operation for modified resource")
01071 
01072   SVN_ERRDEF(SVN_ERR_CLIENT_IS_DIRECTORY,
01073              SVN_ERR_CLIENT_CATEGORY_START + 7,
01074              "Operation does not apply to directory")
01075 
01076   SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_RANGE,
01077              SVN_ERR_CLIENT_CATEGORY_START + 8,
01078              "Revision range is not allowed")
01079 
01080   SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_RELOCATION,
01081              SVN_ERR_CLIENT_CATEGORY_START + 9,
01082              "Inter-repository relocation not allowed")
01083 
01084   SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
01085              SVN_ERR_CLIENT_CATEGORY_START + 10,
01086              "Author name cannot contain a newline")
01087 
01088   SVN_ERRDEF(SVN_ERR_CLIENT_PROPERTY_NAME,
01089              SVN_ERR_CLIENT_CATEGORY_START + 11,
01090              "Bad property name")
01091 
01093   SVN_ERRDEF(SVN_ERR_CLIENT_UNRELATED_RESOURCES,
01094              SVN_ERR_CLIENT_CATEGORY_START + 12,
01095              "Two versioned resources are unrelated")
01096 
01098   SVN_ERRDEF(SVN_ERR_CLIENT_MISSING_LOCK_TOKEN,
01099              SVN_ERR_CLIENT_CATEGORY_START + 13,
01100              "Path has no lock token")
01101 
01103   SVN_ERRDEF(SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED,
01104              SVN_ERR_CLIENT_CATEGORY_START + 14,
01105              "Operation does not support multiple sources")
01106 
01108   SVN_ERRDEF(SVN_ERR_CLIENT_NO_VERSIONED_PARENT,
01109              SVN_ERR_CLIENT_CATEGORY_START + 15,
01110              "No versioned parent directories")
01111 
01113   SVN_ERRDEF(SVN_ERR_CLIENT_NOT_READY_TO_MERGE,
01114              SVN_ERR_CLIENT_CATEGORY_START + 16,
01115              "Working copy and merge source not ready for reintegration")
01116 
01118   SVN_ERRDEF(SVN_ERR_CLIENT_FILE_EXTERNAL_OVERWRITE_VERSIONED,
01119              SVN_ERR_CLIENT_CATEGORY_START + 17,
01120              "A file external cannot overwrite an existing versioned item")
01121 
01123   SVN_ERRDEF(SVN_ERR_CLIENT_PATCH_BAD_STRIP_COUNT,
01124              SVN_ERR_CLIENT_CATEGORY_START + 18,
01125              "Invalid path component strip count specified")
01126 
01128   SVN_ERRDEF(SVN_ERR_CLIENT_CYCLE_DETECTED,
01129              SVN_ERR_CLIENT_CATEGORY_START + 19,
01130              "Detected a cycle while processing the operation")
01131 
01133   SVN_ERRDEF(SVN_ERR_CLIENT_MERGE_UPDATE_REQUIRED,
01134              SVN_ERR_CLIENT_CATEGORY_START + 20,
01135              "Working copy and merge source not ready for reintegration")
01136 
01138   SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_MERGEINFO_NO_MERGETRACKING,
01139              SVN_ERR_CLIENT_CATEGORY_START + 21,
01140              "Invalid mergeinfo detected in merge target")
01141 
01143   SVN_ERRDEF(SVN_ERR_CLIENT_NO_LOCK_TOKEN,
01144              SVN_ERR_CLIENT_CATEGORY_START + 22,
01145              "Can't perform this operation without a valid lock token")
01146 
01148   SVN_ERRDEF(SVN_ERR_CLIENT_FORBIDDEN_BY_SERVER,
01149              SVN_ERR_CLIENT_CATEGORY_START + 23,
01150              "The operation is forbidden by the server")
01151 
01152   /* misc errors */
01153 
01154   SVN_ERRDEF(SVN_ERR_BASE,
01155              SVN_ERR_MISC_CATEGORY_START + 0,
01156              "A problem occurred; see other errors for details")
01157 
01158   SVN_ERRDEF(SVN_ERR_PLUGIN_LOAD_FAILURE,
01159              SVN_ERR_MISC_CATEGORY_START + 1,
01160              "Failure loading plugin")
01161 
01162   SVN_ERRDEF(SVN_ERR_MALFORMED_FILE,
01163              SVN_ERR_MISC_CATEGORY_START + 2,
01164              "Malformed file")
01165 
01166   SVN_ERRDEF(SVN_ERR_INCOMPLETE_DATA,
01167              SVN_ERR_MISC_CATEGORY_START + 3,
01168              "Incomplete data")
01169 
01170   SVN_ERRDEF(SVN_ERR_INCORRECT_PARAMS,
01171              SVN_ERR_MISC_CATEGORY_START + 4,
01172              "Incorrect parameters given")
01173 
01174   SVN_ERRDEF(SVN_ERR_UNVERSIONED_RESOURCE,
01175              SVN_ERR_MISC_CATEGORY_START + 5,
01176              "Tried a versioning operation on an unversioned resource")
01177 
01178   SVN_ERRDEF(SVN_ERR_TEST_FAILED,
01179              SVN_ERR_MISC_CATEGORY_START + 6,
01180              "Test failed")
01181 
01182   SVN_ERRDEF(SVN_ERR_UNSUPPORTED_FEATURE,
01183              SVN_ERR_MISC_CATEGORY_START + 7,
01184              "Trying to use an unsupported feature")
01185 
01186   SVN_ERRDEF(SVN_ERR_BAD_PROP_KIND,
01187              SVN_ERR_MISC_CATEGORY_START + 8,
01188              "Unexpected or unknown property kind")
01189 
01190   SVN_ERRDEF(SVN_ERR_ILLEGAL_TARGET,
01191              SVN_ERR_MISC_CATEGORY_START + 9,
01192              "Illegal target for the requested operation")
01193 
01194   SVN_ERRDEF(SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
01195              SVN_ERR_MISC_CATEGORY_START + 10,
01196              "MD5 checksum is missing")
01197 
01198   SVN_ERRDEF(SVN_ERR_DIR_NOT_EMPTY,
01199              SVN_ERR_MISC_CATEGORY_START + 11,
01200              "Directory needs to be empty but is not")
01201 
01202   SVN_ERRDEF(SVN_ERR_EXTERNAL_PROGRAM,
01203              SVN_ERR_MISC_CATEGORY_START + 12,
01204              "Error calling external program")
01205 
01206   SVN_ERRDEF(SVN_ERR_SWIG_PY_EXCEPTION_SET,
01207              SVN_ERR_MISC_CATEGORY_START + 13,
01208              "Python exception has been set with the error")
01209 
01210   SVN_ERRDEF(SVN_ERR_CHECKSUM_MISMATCH,
01211              SVN_ERR_MISC_CATEGORY_START + 14,
01212              "A checksum mismatch occurred")
01213 
01214   SVN_ERRDEF(SVN_ERR_CANCELLED,
01215              SVN_ERR_MISC_CATEGORY_START + 15,
01216              "The operation was interrupted")
01217 
01218   SVN_ERRDEF(SVN_ERR_INVALID_DIFF_OPTION,
01219              SVN_ERR_MISC_CATEGORY_START + 16,
01220              "The specified diff option is not supported")
01221 
01222   SVN_ERRDEF(SVN_ERR_PROPERTY_NOT_FOUND,
01223              SVN_ERR_MISC_CATEGORY_START + 17,
01224              "Property not found")
01225 
01226   SVN_ERRDEF(SVN_ERR_NO_AUTH_FILE_PATH,
01227              SVN_ERR_MISC_CATEGORY_START + 18,
01228              "No auth file path available")
01229 
01231   SVN_ERRDEF(SVN_ERR_VERSION_MISMATCH,
01232              SVN_ERR_MISC_CATEGORY_START + 19,
01233              "Incompatible library version")
01234 
01236   SVN_ERRDEF(SVN_ERR_MERGEINFO_PARSE_ERROR,
01237              SVN_ERR_MISC_CATEGORY_START + 20,
01238              "Mergeinfo parse error")
01239 
01241   SVN_ERRDEF(SVN_ERR_CEASE_INVOCATION,
01242              SVN_ERR_MISC_CATEGORY_START + 21,
01243              "Cease invocation of this API")
01244 
01246   SVN_ERRDEF(SVN_ERR_REVNUM_PARSE_FAILURE,
01247              SVN_ERR_MISC_CATEGORY_START + 22,
01248              "Error parsing revision number")
01249 
01251   SVN_ERRDEF(SVN_ERR_ITER_BREAK,
01252              SVN_ERR_MISC_CATEGORY_START + 23,
01253              "Iteration terminated before completion")
01254 
01256   SVN_ERRDEF(SVN_ERR_UNKNOWN_CHANGELIST,
01257              SVN_ERR_MISC_CATEGORY_START + 24,
01258              "Unknown changelist")
01259 
01261   SVN_ERRDEF(SVN_ERR_RESERVED_FILENAME_SPECIFIED,
01262              SVN_ERR_MISC_CATEGORY_START + 25,
01263              "Reserved directory name in command line arguments")
01264 
01266   SVN_ERRDEF(SVN_ERR_UNKNOWN_CAPABILITY,
01267              SVN_ERR_MISC_CATEGORY_START + 26,
01268              "Inquiry about unknown capability")
01269 
01271   SVN_ERRDEF(SVN_ERR_TEST_SKIPPED,
01272              SVN_ERR_MISC_CATEGORY_START + 27,
01273              "Test skipped")
01274 
01276   SVN_ERRDEF(SVN_ERR_NO_APR_MEMCACHE,
01277              SVN_ERR_MISC_CATEGORY_START + 28,
01278              "APR memcache library not available")
01279 
01281   SVN_ERRDEF(SVN_ERR_ATOMIC_INIT_FAILURE,
01282              SVN_ERR_MISC_CATEGORY_START + 29,
01283              "Couldn't perform atomic initialization")
01284 
01286   SVN_ERRDEF(SVN_ERR_SQLITE_ERROR,
01287              SVN_ERR_MISC_CATEGORY_START + 30,
01288              "SQLite error")
01289 
01291   SVN_ERRDEF(SVN_ERR_SQLITE_READONLY,
01292              SVN_ERR_MISC_CATEGORY_START + 31,
01293              "Attempted to write to readonly SQLite db")
01294 
01298   SVN_ERRDEF(SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA,
01299              SVN_ERR_MISC_CATEGORY_START + 32,
01300              "Unsupported schema found in SQLite db")
01301 
01303   SVN_ERRDEF(SVN_ERR_SQLITE_BUSY,
01304              SVN_ERR_MISC_CATEGORY_START + 33,
01305              "The SQLite db is busy")
01306 
01308   SVN_ERRDEF(SVN_ERR_SQLITE_RESETTING_FOR_ROLLBACK,
01309              SVN_ERR_MISC_CATEGORY_START + 34,
01310              "SQLite busy at transaction rollback; "
01311              "resetting all busy SQLite statements to allow rollback")
01312 
01314   SVN_ERRDEF(SVN_ERR_SQLITE_CONSTRAINT,
01315              SVN_ERR_MISC_CATEGORY_START + 35,
01316              "Constraint error in SQLite db")
01317 
01319   SVN_ERRDEF(SVN_ERR_TOO_MANY_MEMCACHED_SERVERS,
01320              SVN_ERR_MISC_CATEGORY_START + 36,
01321              "Too many memcached servers configured")
01322 
01324   SVN_ERRDEF(SVN_ERR_MALFORMED_VERSION_STRING,
01325              SVN_ERR_MISC_CATEGORY_START + 37,
01326              "Failed to parse version number string")
01327 
01329   SVN_ERRDEF(SVN_ERR_CORRUPTED_ATOMIC_STORAGE,
01330              SVN_ERR_MISC_CATEGORY_START + 38,
01331              "Atomic data storage is corrupt")
01332 
01333   /* command-line client errors */
01334 
01335   SVN_ERRDEF(SVN_ERR_CL_ARG_PARSING_ERROR,
01336              SVN_ERR_CL_CATEGORY_START + 0,
01337              "Error parsing arguments")
01338 
01339   SVN_ERRDEF(SVN_ERR_CL_INSUFFICIENT_ARGS,
01340              SVN_ERR_CL_CATEGORY_START + 1,
01341              "Not enough arguments provided")
01342 
01343   SVN_ERRDEF(SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
01344              SVN_ERR_CL_CATEGORY_START + 2,
01345              "Mutually exclusive arguments specified")
01346 
01347   SVN_ERRDEF(SVN_ERR_CL_ADM_DIR_RESERVED,
01348              SVN_ERR_CL_CATEGORY_START + 3,
01349              "Attempted command in administrative dir")
01350 
01351   SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
01352              SVN_ERR_CL_CATEGORY_START + 4,
01353              "The log message file is under version control")
01354 
01355   SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
01356              SVN_ERR_CL_CATEGORY_START + 5,
01357              "The log message is a pathname")
01358 
01359   SVN_ERRDEF(SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
01360              SVN_ERR_CL_CATEGORY_START + 6,
01361              "Committing in directory scheduled for addition")
01362 
01363   SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_EDITOR,
01364              SVN_ERR_CL_CATEGORY_START + 7,
01365              "No external editor available")
01366 
01367   SVN_ERRDEF(SVN_ERR_CL_BAD_LOG_MESSAGE,
01368              SVN_ERR_CL_CATEGORY_START + 8,
01369              "Something is wrong with the log message's contents")
01370 
01371   SVN_ERRDEF(SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE,
01372              SVN_ERR_CL_CATEGORY_START + 9,
01373              "A log message was given where none was necessary")
01374 
01375   SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_MERGE_TOOL,
01376              SVN_ERR_CL_CATEGORY_START + 10,
01377              "No external merge tool available")
01378 
01379   SVN_ERRDEF(SVN_ERR_CL_ERROR_PROCESSING_EXTERNALS,
01380              SVN_ERR_CL_CATEGORY_START + 11,
01381              "Failed processing one or more externals definitions")
01382 
01383   /* ra_svn errors */
01384 
01385   SVN_ERRDEF(SVN_ERR_RA_SVN_CMD_ERR,
01386              SVN_ERR_RA_SVN_CATEGORY_START + 0,
01387              "Special code for wrapping server errors to report to client")
01388 
01389   SVN_ERRDEF(SVN_ERR_RA_SVN_UNKNOWN_CMD,
01390              SVN_ERR_RA_SVN_CATEGORY_START + 1,
01391              "Unknown svn protocol command")
01392 
01393   SVN_ERRDEF(SVN_ERR_RA_SVN_CONNECTION_CLOSED,
01394              SVN_ERR_RA_SVN_CATEGORY_START + 2,
01395              "Network connection closed unexpectedly")
01396 
01397   SVN_ERRDEF(SVN_ERR_RA_SVN_IO_ERROR,
01398              SVN_ERR_RA_SVN_CATEGORY_START + 3,
01399              "Network read/write error")
01400 
01401   SVN_ERRDEF(SVN_ERR_RA_SVN_MALFORMED_DATA,
01402              SVN_ERR_RA_SVN_CATEGORY_START + 4,
01403              "Malformed network data")
01404 
01405   SVN_ERRDEF(SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
01406              SVN_ERR_RA_SVN_CATEGORY_START + 5,
01407              "Couldn't find a repository")
01408 
01409   SVN_ERRDEF(SVN_ERR_RA_SVN_BAD_VERSION,
01410              SVN_ERR_RA_SVN_CATEGORY_START + 6,
01411              "Client/server version mismatch")
01412 
01414   SVN_ERRDEF(SVN_ERR_RA_SVN_NO_MECHANISMS,
01415              SVN_ERR_RA_SVN_CATEGORY_START + 7,
01416              "Cannot negotiate authentication mechanism")
01417 
01419   SVN_ERRDEF(SVN_ERR_RA_SVN_EDIT_ABORTED,
01420              SVN_ERR_RA_SVN_CATEGORY_START + 8,
01421              "Editor drive was aborted")
01422 
01423   /* libsvn_auth errors */
01424 
01425        /* this error can be used when an auth provider doesn't have
01426           the creds, but no other "real" error occurred. */
01427   SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
01428              SVN_ERR_AUTHN_CATEGORY_START + 0,
01429              "Credential data unavailable")
01430 
01431   SVN_ERRDEF(SVN_ERR_AUTHN_NO_PROVIDER,
01432              SVN_ERR_AUTHN_CATEGORY_START + 1,
01433              "No authentication provider available")
01434 
01435   SVN_ERRDEF(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
01436              SVN_ERR_AUTHN_CATEGORY_START + 2,
01437              "All authentication providers exhausted")
01438 
01439   SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_NOT_SAVED,
01440              SVN_ERR_AUTHN_CATEGORY_START + 3,
01441              "Credentials not saved")
01442 
01444   SVN_ERRDEF(SVN_ERR_AUTHN_FAILED,
01445              SVN_ERR_AUTHN_CATEGORY_START + 4,
01446              "Authentication failed")
01447 
01448   /* authorization errors */
01449 
01450   SVN_ERRDEF(SVN_ERR_AUTHZ_ROOT_UNREADABLE,
01451              SVN_ERR_AUTHZ_CATEGORY_START + 0,
01452              "Read access denied for root of edit")
01453 
01455   SVN_ERRDEF(SVN_ERR_AUTHZ_UNREADABLE,
01456              SVN_ERR_AUTHZ_CATEGORY_START + 1,
01457              "Item is not readable")
01458 
01460   SVN_ERRDEF(SVN_ERR_AUTHZ_PARTIALLY_READABLE,
01461              SVN_ERR_AUTHZ_CATEGORY_START + 2,
01462              "Item is partially readable")
01463 
01464   SVN_ERRDEF(SVN_ERR_AUTHZ_INVALID_CONFIG,
01465              SVN_ERR_AUTHZ_CATEGORY_START + 3,
01466              "Invalid authz configuration")
01467 
01469   SVN_ERRDEF(SVN_ERR_AUTHZ_UNWRITABLE,
01470              SVN_ERR_AUTHZ_CATEGORY_START + 4,
01471              "Item is not writable")
01472 
01473 
01474   /* libsvn_diff errors */
01475 
01476   SVN_ERRDEF(SVN_ERR_DIFF_DATASOURCE_MODIFIED,
01477              SVN_ERR_DIFF_CATEGORY_START + 0,
01478              "Diff data source modified unexpectedly")
01479 
01480   /* libsvn_ra_serf errors */
01482   SVN_ERRDEF(SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED,
01483              SVN_ERR_RA_SERF_CATEGORY_START + 0,
01484              "Initialization of SSPI library failed")
01486   SVN_ERRDEF(SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED,
01487              SVN_ERR_RA_SERF_CATEGORY_START + 1,
01488              "Server SSL certificate untrusted")
01491   SVN_ERRDEF(SVN_ERR_RA_SERF_GSSAPI_INITIALISATION_FAILED,
01492              SVN_ERR_RA_SERF_CATEGORY_START + 2,
01493              "Initialization of the GSSAPI context failed")
01494 
01496   SVN_ERRDEF(SVN_ERR_RA_SERF_WRAPPED_ERROR,
01497              SVN_ERR_RA_SERF_CATEGORY_START + 3,
01498              "While handling serf response:")
01499 
01500   /* malfunctions such as assertion failures */
01501 
01502   SVN_ERRDEF(SVN_ERR_ASSERTION_FAIL,
01503              SVN_ERR_MALFUNC_CATEGORY_START + 0,
01504              "Assertion failure")
01505 
01506   SVN_ERRDEF(SVN_ERR_ASSERTION_ONLY_TRACING_LINKS,
01507              SVN_ERR_MALFUNC_CATEGORY_START + 1,
01508              "No non-tracing links found in the error chain")
01509 
01510 SVN_ERROR_END
01511 
01512 
01513 #undef SVN_ERROR_START
01514 #undef SVN_ERRDEF
01515 #undef SVN_ERROR_END
01516 
01517 #ifdef __cplusplus
01518 }
01519 #endif /* __cplusplus */
01520 
01521 #endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */