Build Libapr and libaprutil successfully
[TortoiseGit.git] / src / TortoiseMerge / svninclude / svn_error_codes.h
blob91d3ffb43ab69c1822c14b4b483692671f9aeba6
1 /**
2 * @copyright
3 * ====================================================================
4 * Copyright (c) 2000-2008 CollabNet. All rights reserved.
6 * This software is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at http://subversion.tigris.org/license-1.html.
9 * If newer versions of this license are posted there, you may use a
10 * newer version instead, at your option.
12 * This software consists of voluntary contributions made by many
13 * individuals. For exact contribution history, see the revision
14 * history and logs, available at http://subversion.tigris.org/.
15 * ====================================================================
16 * @endcopyright
18 * @file svn_error_codes.h
19 * @brief Subversion error codes.
22 /* What's going on here?
24 In order to define error codes and their associated description
25 strings in the same place, we overload the SVN_ERRDEF() macro with
26 two definitions below. Both take two arguments, an error code name
27 and a description string. One definition of the macro just throws
28 away the string and defines enumeration constants using the error
29 code names -- that definition is used by the header file that
30 exports error codes to the rest of Subversion. The other
31 definition creates a static table mapping the enum codes to their
32 corresponding strings -- that definition is used by the C file that
33 implements svn_strerror().
35 The header and C files both include this file, using #defines to
36 control which version of the macro they get.
40 /* Process this file if we're building an error array, or if we have
41 not defined the enumerated constants yet. */
42 #if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED)
45 #include <apr.h>
46 #include <apr_errno.h> /* APR's error system */
48 //#include "svn_props.h" /* For SVN_PROP_EXTERNALS. */
50 #ifdef __cplusplus
51 extern "C" {
52 #endif /* __cplusplus */
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 #if defined(SVN_ERROR_BUILD_ARRAY)
58 #define SVN_ERROR_START \
59 static const err_defn error_table[] = { \
60 { SVN_WARNING, "Warning" },
61 #define SVN_ERRDEF(num, offset, str) { num, str },
62 #define SVN_ERROR_END { 0, NULL } };
64 #elif !defined(SVN_ERROR_ENUM_DEFINED)
66 #define SVN_ERROR_START \
67 typedef enum svn_errno_t { \
68 SVN_WARNING = APR_OS_START_USERERR + 1,
69 #define SVN_ERRDEF(num, offset, str) /** str */ num = offset,
70 #define SVN_ERROR_END SVN_ERR_LAST } svn_errno_t;
72 #define SVN_ERROR_ENUM_DEFINED
74 #endif
76 /* Define custom Subversion error numbers, in the range reserved for
77 that in APR: from APR_OS_START_USERERR to APR_OS_START_SYSERR (see
78 apr_errno.h).
80 Error numbers are divided into categories of up to 5000 errors
81 each. Since we're dividing up the APR user error space, which has
82 room for 500,000 errors, we can have up to 100 categories.
83 Categories are fixed-size; if a category has fewer than 5000
84 errors, then it just ends with a range of unused numbers.
86 To maintain binary compatibility, please observe these guidelines:
88 - When adding a new error, always add on the end of the
89 appropriate category, so that the real values of existing
90 errors are not changed.
92 - When deleting an error, leave a placeholder comment indicating
93 the offset, again so that the values of other errors are not
94 perturbed.
97 #define SVN_ERR_CATEGORY_SIZE 5000
99 /* Leave one category of room at the beginning, for SVN_WARNING and
100 any other such beasts we might create in the future. */
101 #define SVN_ERR_BAD_CATEGORY_START (APR_OS_START_USERERR \
102 + ( 1 * SVN_ERR_CATEGORY_SIZE))
103 #define SVN_ERR_XML_CATEGORY_START (APR_OS_START_USERERR \
104 + ( 2 * SVN_ERR_CATEGORY_SIZE))
105 #define SVN_ERR_IO_CATEGORY_START (APR_OS_START_USERERR \
106 + ( 3 * SVN_ERR_CATEGORY_SIZE))
107 #define SVN_ERR_STREAM_CATEGORY_START (APR_OS_START_USERERR \
108 + ( 4 * SVN_ERR_CATEGORY_SIZE))
109 #define SVN_ERR_NODE_CATEGORY_START (APR_OS_START_USERERR \
110 + ( 5 * SVN_ERR_CATEGORY_SIZE))
111 #define SVN_ERR_ENTRY_CATEGORY_START (APR_OS_START_USERERR \
112 + ( 6 * SVN_ERR_CATEGORY_SIZE))
113 #define SVN_ERR_WC_CATEGORY_START (APR_OS_START_USERERR \
114 + ( 7 * SVN_ERR_CATEGORY_SIZE))
115 #define SVN_ERR_FS_CATEGORY_START (APR_OS_START_USERERR \
116 + ( 8 * SVN_ERR_CATEGORY_SIZE))
117 #define SVN_ERR_REPOS_CATEGORY_START (APR_OS_START_USERERR \
118 + ( 9 * SVN_ERR_CATEGORY_SIZE))
119 #define SVN_ERR_RA_CATEGORY_START (APR_OS_START_USERERR \
120 + (10 * SVN_ERR_CATEGORY_SIZE))
121 #define SVN_ERR_RA_DAV_CATEGORY_START (APR_OS_START_USERERR \
122 + (11 * SVN_ERR_CATEGORY_SIZE))
123 #define SVN_ERR_RA_LOCAL_CATEGORY_START (APR_OS_START_USERERR \
124 + (12 * SVN_ERR_CATEGORY_SIZE))
125 #define SVN_ERR_SVNDIFF_CATEGORY_START (APR_OS_START_USERERR \
126 + (13 * SVN_ERR_CATEGORY_SIZE))
127 #define SVN_ERR_APMOD_CATEGORY_START (APR_OS_START_USERERR \
128 + (14 * SVN_ERR_CATEGORY_SIZE))
129 #define SVN_ERR_CLIENT_CATEGORY_START (APR_OS_START_USERERR \
130 + (15 * SVN_ERR_CATEGORY_SIZE))
131 #define SVN_ERR_MISC_CATEGORY_START (APR_OS_START_USERERR \
132 + (16 * SVN_ERR_CATEGORY_SIZE))
133 #define SVN_ERR_CL_CATEGORY_START (APR_OS_START_USERERR \
134 + (17 * SVN_ERR_CATEGORY_SIZE))
135 #define SVN_ERR_RA_SVN_CATEGORY_START (APR_OS_START_USERERR \
136 + (18 * SVN_ERR_CATEGORY_SIZE))
137 #define SVN_ERR_AUTHN_CATEGORY_START (APR_OS_START_USERERR \
138 + (19 * SVN_ERR_CATEGORY_SIZE))
139 #define SVN_ERR_AUTHZ_CATEGORY_START (APR_OS_START_USERERR \
140 + (20 * SVN_ERR_CATEGORY_SIZE))
141 #define SVN_ERR_DIFF_CATEGORY_START (APR_OS_START_USERERR \
142 + (21 * SVN_ERR_CATEGORY_SIZE))
143 #define SVN_ERR_RA_SERF_CATEGORY_START (APR_OS_START_USERERR \
144 + (22 * SVN_ERR_CATEGORY_SIZE))
145 #define SVN_ERR_MALFUNC_CATEGORY_START (APR_OS_START_USERERR \
146 + (23 * SVN_ERR_CATEGORY_SIZE))
148 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
150 /** Collection of Subversion error code values, located within the
151 * APR user error space. */
152 SVN_ERROR_START
154 /* validation ("BAD_FOO") errors */
156 SVN_ERRDEF(SVN_ERR_BAD_CONTAINING_POOL,
157 SVN_ERR_BAD_CATEGORY_START + 0,
158 "Bad parent pool passed to svn_make_pool()")
160 SVN_ERRDEF(SVN_ERR_BAD_FILENAME,
161 SVN_ERR_BAD_CATEGORY_START + 1,
162 "Bogus filename")
164 SVN_ERRDEF(SVN_ERR_BAD_URL,
165 SVN_ERR_BAD_CATEGORY_START + 2,
166 "Bogus URL")
168 SVN_ERRDEF(SVN_ERR_BAD_DATE,
169 SVN_ERR_BAD_CATEGORY_START + 3,
170 "Bogus date")
172 SVN_ERRDEF(SVN_ERR_BAD_MIME_TYPE,
173 SVN_ERR_BAD_CATEGORY_START + 4,
174 "Bogus mime-type")
176 /** @since New in 1.5.
178 * Note that there was an unused slot sitting here at
179 * SVN_ERR_BAD_CATEGORY_START + 5, so error codes after this aren't
180 * necessarily "New in 1.5" just because they come later.
182 SVN_ERRDEF(SVN_ERR_BAD_PROPERTY_VALUE,
183 SVN_ERR_BAD_CATEGORY_START + 5,
184 "Wrong or unexpected property value")
186 SVN_ERRDEF(SVN_ERR_BAD_VERSION_FILE_FORMAT,
187 SVN_ERR_BAD_CATEGORY_START + 6,
188 "Version file format not correct")
190 SVN_ERRDEF(SVN_ERR_BAD_RELATIVE_PATH,
191 SVN_ERR_BAD_CATEGORY_START + 7,
192 "Path is not an immediate child of the specified directory")
194 SVN_ERRDEF(SVN_ERR_BAD_UUID,
195 SVN_ERR_BAD_CATEGORY_START + 8,
196 "Bogus UUID")
198 /** @since New in 1.6. */
199 SVN_ERRDEF(SVN_ERR_BAD_CONFIG_VALUE,
200 SVN_ERR_BAD_CATEGORY_START + 9,
201 "Invalid configuration value")
203 SVN_ERRDEF(SVN_ERR_BAD_SERVER_SPECIFICATION,
204 SVN_ERR_BAD_CATEGORY_START + 10,
205 "Bogus server specification")
207 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_KIND,
208 SVN_ERR_BAD_CATEGORY_START + 11,
209 "Unsupported checksum type")
211 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_PARSE,
212 SVN_ERR_BAD_CATEGORY_START + 12,
213 "Invalid character in hex checksum")
215 /* xml errors */
217 SVN_ERRDEF(SVN_ERR_XML_ATTRIB_NOT_FOUND,
218 SVN_ERR_XML_CATEGORY_START + 0,
219 "No such XML tag attribute")
221 SVN_ERRDEF(SVN_ERR_XML_MISSING_ANCESTRY,
222 SVN_ERR_XML_CATEGORY_START + 1,
223 "<delta-pkg> is missing ancestry")
225 SVN_ERRDEF(SVN_ERR_XML_UNKNOWN_ENCODING,
226 SVN_ERR_XML_CATEGORY_START + 2,
227 "Unrecognized binary data encoding; can't decode")
229 SVN_ERRDEF(SVN_ERR_XML_MALFORMED,
230 SVN_ERR_XML_CATEGORY_START + 3,
231 "XML data was not well-formed")
233 SVN_ERRDEF(SVN_ERR_XML_UNESCAPABLE_DATA,
234 SVN_ERR_XML_CATEGORY_START + 4,
235 "Data cannot be safely XML-escaped")
237 /* io errors */
239 SVN_ERRDEF(SVN_ERR_IO_INCONSISTENT_EOL,
240 SVN_ERR_IO_CATEGORY_START + 0,
241 "Inconsistent line ending style")
243 SVN_ERRDEF(SVN_ERR_IO_UNKNOWN_EOL,
244 SVN_ERR_IO_CATEGORY_START + 1,
245 "Unrecognized line ending style")
247 /** @deprecated Unused, slated for removal in the next major release. */
248 SVN_ERRDEF(SVN_ERR_IO_CORRUPT_EOL,
249 SVN_ERR_IO_CATEGORY_START + 2,
250 "Line endings other than expected")
252 SVN_ERRDEF(SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
253 SVN_ERR_IO_CATEGORY_START + 3,
254 "Ran out of unique names")
256 /** @deprecated Unused, slated for removal in the next major release. */
257 SVN_ERRDEF(SVN_ERR_IO_PIPE_FRAME_ERROR,
258 SVN_ERR_IO_CATEGORY_START + 4,
259 "Framing error in pipe protocol")
261 /** @deprecated Unused, slated for removal in the next major release. */
262 SVN_ERRDEF(SVN_ERR_IO_PIPE_READ_ERROR,
263 SVN_ERR_IO_CATEGORY_START + 5,
264 "Read error in pipe")
266 SVN_ERRDEF(SVN_ERR_IO_WRITE_ERROR,
267 SVN_ERR_IO_CATEGORY_START + 6,
268 "Write error")
270 /* stream errors */
272 SVN_ERRDEF(SVN_ERR_STREAM_UNEXPECTED_EOF,
273 SVN_ERR_STREAM_CATEGORY_START + 0,
274 "Unexpected EOF on stream")
276 SVN_ERRDEF(SVN_ERR_STREAM_MALFORMED_DATA,
277 SVN_ERR_STREAM_CATEGORY_START + 1,
278 "Malformed stream data")
280 SVN_ERRDEF(SVN_ERR_STREAM_UNRECOGNIZED_DATA,
281 SVN_ERR_STREAM_CATEGORY_START + 2,
282 "Unrecognized stream data")
284 /* node errors */
286 SVN_ERRDEF(SVN_ERR_NODE_UNKNOWN_KIND,
287 SVN_ERR_NODE_CATEGORY_START + 0,
288 "Unknown svn_node_kind")
290 SVN_ERRDEF(SVN_ERR_NODE_UNEXPECTED_KIND,
291 SVN_ERR_NODE_CATEGORY_START + 1,
292 "Unexpected node kind found")
294 /* entry errors */
296 SVN_ERRDEF(SVN_ERR_ENTRY_NOT_FOUND,
297 SVN_ERR_ENTRY_CATEGORY_START + 0,
298 "Can't find an entry")
300 /* UNUSED error slot: + 1 */
302 SVN_ERRDEF(SVN_ERR_ENTRY_EXISTS,
303 SVN_ERR_ENTRY_CATEGORY_START + 2,
304 "Entry already exists")
306 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_REVISION,
307 SVN_ERR_ENTRY_CATEGORY_START + 3,
308 "Entry has no revision")
310 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_URL,
311 SVN_ERR_ENTRY_CATEGORY_START + 4,
312 "Entry has no URL")
314 SVN_ERRDEF(SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
315 SVN_ERR_ENTRY_CATEGORY_START + 5,
316 "Entry has an invalid attribute")
318 /* wc errors */
320 SVN_ERRDEF(SVN_ERR_WC_OBSTRUCTED_UPDATE,
321 SVN_ERR_WC_CATEGORY_START + 0,
322 "Obstructed update")
324 /** @deprecated Unused, slated for removal in the next major release. */
325 SVN_ERRDEF(SVN_ERR_WC_UNWIND_MISMATCH,
326 SVN_ERR_WC_CATEGORY_START + 1,
327 "Mismatch popping the WC unwind stack")
329 /** @deprecated Unused, slated for removal in the next major release. */
330 SVN_ERRDEF(SVN_ERR_WC_UNWIND_EMPTY,
331 SVN_ERR_WC_CATEGORY_START + 2,
332 "Attempt to pop empty WC unwind stack")
334 /** @deprecated Unused, slated for removal in the next major release. */
335 SVN_ERRDEF(SVN_ERR_WC_UNWIND_NOT_EMPTY,
336 SVN_ERR_WC_CATEGORY_START + 3,
337 "Attempt to unlock with non-empty unwind stack")
339 SVN_ERRDEF(SVN_ERR_WC_LOCKED,
340 SVN_ERR_WC_CATEGORY_START + 4,
341 "Attempted to lock an already-locked dir")
343 SVN_ERRDEF(SVN_ERR_WC_NOT_LOCKED,
344 SVN_ERR_WC_CATEGORY_START + 5,
345 "Working copy not locked; this is probably a bug, please report")
347 /** @deprecated Unused, slated for removal in the next major release. */
348 SVN_ERRDEF(SVN_ERR_WC_INVALID_LOCK,
349 SVN_ERR_WC_CATEGORY_START + 6,
350 "Invalid lock")
352 SVN_ERRDEF(SVN_ERR_WC_NOT_DIRECTORY,
353 SVN_ERR_WC_CATEGORY_START + 7,
354 "Path is not a working copy directory")
356 SVN_ERRDEF(SVN_ERR_WC_NOT_FILE,
357 SVN_ERR_WC_CATEGORY_START + 8,
358 "Path is not a working copy file")
360 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG,
361 SVN_ERR_WC_CATEGORY_START + 9,
362 "Problem running log")
364 SVN_ERRDEF(SVN_ERR_WC_PATH_NOT_FOUND,
365 SVN_ERR_WC_CATEGORY_START + 10,
366 "Can't find a working copy path")
368 SVN_ERRDEF(SVN_ERR_WC_NOT_UP_TO_DATE,
369 SVN_ERR_WC_CATEGORY_START + 11,
370 "Working copy is not up-to-date")
372 SVN_ERRDEF(SVN_ERR_WC_LEFT_LOCAL_MOD,
373 SVN_ERR_WC_CATEGORY_START + 12,
374 "Left locally modified or unversioned files")
376 SVN_ERRDEF(SVN_ERR_WC_SCHEDULE_CONFLICT,
377 SVN_ERR_WC_CATEGORY_START + 13,
378 "Unmergeable scheduling requested on an entry")
380 SVN_ERRDEF(SVN_ERR_WC_PATH_FOUND,
381 SVN_ERR_WC_CATEGORY_START + 14,
382 "Found a working copy path")
384 SVN_ERRDEF(SVN_ERR_WC_FOUND_CONFLICT,
385 SVN_ERR_WC_CATEGORY_START + 15,
386 "A conflict in the working copy obstructs the current operation")
388 SVN_ERRDEF(SVN_ERR_WC_CORRUPT,
389 SVN_ERR_WC_CATEGORY_START + 16,
390 "Working copy is corrupt")
392 SVN_ERRDEF(SVN_ERR_WC_CORRUPT_TEXT_BASE,
393 SVN_ERR_WC_CATEGORY_START + 17,
394 "Working copy text base is corrupt")
396 SVN_ERRDEF(SVN_ERR_WC_NODE_KIND_CHANGE,
397 SVN_ERR_WC_CATEGORY_START + 18,
398 "Cannot change node kind")
400 SVN_ERRDEF(SVN_ERR_WC_INVALID_OP_ON_CWD,
401 SVN_ERR_WC_CATEGORY_START + 19,
402 "Invalid operation on the current working directory")
404 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG_START,
405 SVN_ERR_WC_CATEGORY_START + 20,
406 "Problem on first log entry in a working copy")
408 SVN_ERRDEF(SVN_ERR_WC_UNSUPPORTED_FORMAT,
409 SVN_ERR_WC_CATEGORY_START + 21,
410 "Unsupported working copy format")
412 SVN_ERRDEF(SVN_ERR_WC_BAD_PATH,
413 SVN_ERR_WC_CATEGORY_START + 22,
414 "Path syntax not supported in this context")
416 /** @since New in 1.2. */
417 SVN_ERRDEF(SVN_ERR_WC_INVALID_SCHEDULE,
418 SVN_ERR_WC_CATEGORY_START + 23,
419 "Invalid schedule")
421 /** @since New in 1.3. */
422 SVN_ERRDEF(SVN_ERR_WC_INVALID_RELOCATION,
423 SVN_ERR_WC_CATEGORY_START + 24,
424 "Invalid relocation")
426 /** @since New in 1.3. */
427 SVN_ERRDEF(SVN_ERR_WC_INVALID_SWITCH,
428 SVN_ERR_WC_CATEGORY_START + 25,
429 "Invalid switch")
431 /** @since New in 1.5. */
432 SVN_ERRDEF(SVN_ERR_WC_MISMATCHED_CHANGELIST,
433 SVN_ERR_WC_CATEGORY_START + 26,
434 "Changelist doesn't match")
436 /** @since New in 1.5. */
437 SVN_ERRDEF(SVN_ERR_WC_CONFLICT_RESOLVER_FAILURE,
438 SVN_ERR_WC_CATEGORY_START + 27,
439 "Conflict resolution failed")
441 SVN_ERRDEF(SVN_ERR_WC_COPYFROM_PATH_NOT_FOUND,
442 SVN_ERR_WC_CATEGORY_START + 28,
443 "Failed to locate 'copyfrom' path in working copy")
445 /** @since New in 1.5. */
446 SVN_ERRDEF(SVN_ERR_WC_CHANGELIST_MOVE,
447 SVN_ERR_WC_CATEGORY_START + 29,
448 "Moving a path from one changelist to another")
450 /** @since New in 1.6. */
451 SVN_ERRDEF(SVN_ERR_WC_CANNOT_DELETE_FILE_EXTERNAL,
452 SVN_ERR_WC_CATEGORY_START + 30,
453 "Cannot delete a file external")
455 /** @since New in 1.6. */
456 SVN_ERRDEF(SVN_ERR_WC_CANNOT_MOVE_FILE_EXTERNAL,
457 SVN_ERR_WC_CATEGORY_START + 31,
458 "Cannot move a file external")
460 /* fs errors */
462 SVN_ERRDEF(SVN_ERR_FS_GENERAL,
463 SVN_ERR_FS_CATEGORY_START + 0,
464 "General filesystem error")
466 SVN_ERRDEF(SVN_ERR_FS_CLEANUP,
467 SVN_ERR_FS_CATEGORY_START + 1,
468 "Error closing filesystem")
470 SVN_ERRDEF(SVN_ERR_FS_ALREADY_OPEN,
471 SVN_ERR_FS_CATEGORY_START + 2,
472 "Filesystem is already open")
474 SVN_ERRDEF(SVN_ERR_FS_NOT_OPEN,
475 SVN_ERR_FS_CATEGORY_START + 3,
476 "Filesystem is not open")
478 SVN_ERRDEF(SVN_ERR_FS_CORRUPT,
479 SVN_ERR_FS_CATEGORY_START + 4,
480 "Filesystem is corrupt")
482 SVN_ERRDEF(SVN_ERR_FS_PATH_SYNTAX,
483 SVN_ERR_FS_CATEGORY_START + 5,
484 "Invalid filesystem path syntax")
486 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REVISION,
487 SVN_ERR_FS_CATEGORY_START + 6,
488 "Invalid filesystem revision number")
490 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_TRANSACTION,
491 SVN_ERR_FS_CATEGORY_START + 7,
492 "Invalid filesystem transaction name")
494 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_ENTRY,
495 SVN_ERR_FS_CATEGORY_START + 8,
496 "Filesystem directory has no such entry")
498 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REPRESENTATION,
499 SVN_ERR_FS_CATEGORY_START + 9,
500 "Filesystem has no such representation")
502 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_STRING,
503 SVN_ERR_FS_CATEGORY_START + 10,
504 "Filesystem has no such string")
506 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_COPY,
507 SVN_ERR_FS_CATEGORY_START + 11,
508 "Filesystem has no such copy")
510 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
511 SVN_ERR_FS_CATEGORY_START + 12,
512 "The specified transaction is not mutable")
514 SVN_ERRDEF(SVN_ERR_FS_NOT_FOUND,
515 SVN_ERR_FS_CATEGORY_START + 13,
516 "Filesystem has no item")
518 SVN_ERRDEF(SVN_ERR_FS_ID_NOT_FOUND,
519 SVN_ERR_FS_CATEGORY_START + 14,
520 "Filesystem has no such node-rev-id")
522 SVN_ERRDEF(SVN_ERR_FS_NOT_ID,
523 SVN_ERR_FS_CATEGORY_START + 15,
524 "String does not represent a node or node-rev-id")
526 SVN_ERRDEF(SVN_ERR_FS_NOT_DIRECTORY,
527 SVN_ERR_FS_CATEGORY_START + 16,
528 "Name does not refer to a filesystem directory")
530 SVN_ERRDEF(SVN_ERR_FS_NOT_FILE,
531 SVN_ERR_FS_CATEGORY_START + 17,
532 "Name does not refer to a filesystem file")
534 SVN_ERRDEF(SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
535 SVN_ERR_FS_CATEGORY_START + 18,
536 "Name is not a single path component")
538 SVN_ERRDEF(SVN_ERR_FS_NOT_MUTABLE,
539 SVN_ERR_FS_CATEGORY_START + 19,
540 "Attempt to change immutable filesystem node")
542 SVN_ERRDEF(SVN_ERR_FS_ALREADY_EXISTS,
543 SVN_ERR_FS_CATEGORY_START + 20,
544 "Item already exists in filesystem")
546 SVN_ERRDEF(SVN_ERR_FS_ROOT_DIR,
547 SVN_ERR_FS_CATEGORY_START + 21,
548 "Attempt to remove or recreate fs root dir")
550 SVN_ERRDEF(SVN_ERR_FS_NOT_TXN_ROOT,
551 SVN_ERR_FS_CATEGORY_START + 22,
552 "Object is not a transaction root")
554 SVN_ERRDEF(SVN_ERR_FS_NOT_REVISION_ROOT,
555 SVN_ERR_FS_CATEGORY_START + 23,
556 "Object is not a revision root")
558 SVN_ERRDEF(SVN_ERR_FS_CONFLICT,
559 SVN_ERR_FS_CATEGORY_START + 24,
560 "Merge conflict during commit")
562 SVN_ERRDEF(SVN_ERR_FS_REP_CHANGED,
563 SVN_ERR_FS_CATEGORY_START + 25,
564 "A representation vanished or changed between reads")
566 SVN_ERRDEF(SVN_ERR_FS_REP_NOT_MUTABLE,
567 SVN_ERR_FS_CATEGORY_START + 26,
568 "Tried to change an immutable representation")
570 SVN_ERRDEF(SVN_ERR_FS_MALFORMED_SKEL,
571 SVN_ERR_FS_CATEGORY_START + 27,
572 "Malformed skeleton data")
574 SVN_ERRDEF(SVN_ERR_FS_TXN_OUT_OF_DATE,
575 SVN_ERR_FS_CATEGORY_START + 28,
576 "Transaction is out of date")
578 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB,
579 SVN_ERR_FS_CATEGORY_START + 29,
580 "Berkeley DB error")
582 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
583 SVN_ERR_FS_CATEGORY_START + 30,
584 "Berkeley DB deadlock error")
586 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_DEAD,
587 SVN_ERR_FS_CATEGORY_START + 31,
588 "Transaction is dead")
590 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_DEAD,
591 SVN_ERR_FS_CATEGORY_START + 32,
592 "Transaction is not dead")
594 /** @since New in 1.1. */
595 SVN_ERRDEF(SVN_ERR_FS_UNKNOWN_FS_TYPE,
596 SVN_ERR_FS_CATEGORY_START + 33,
597 "Unknown FS type")
599 /** @since New in 1.2. */
600 SVN_ERRDEF(SVN_ERR_FS_NO_USER,
601 SVN_ERR_FS_CATEGORY_START + 34,
602 "No user associated with filesystem")
604 /** @since New in 1.2. */
605 SVN_ERRDEF(SVN_ERR_FS_PATH_ALREADY_LOCKED,
606 SVN_ERR_FS_CATEGORY_START + 35,
607 "Path is already locked")
609 /** @since New in 1.2. */
610 SVN_ERRDEF(SVN_ERR_FS_PATH_NOT_LOCKED,
611 SVN_ERR_FS_CATEGORY_START + 36,
612 "Path is not locked")
614 /** @since New in 1.2. */
615 SVN_ERRDEF(SVN_ERR_FS_BAD_LOCK_TOKEN,
616 SVN_ERR_FS_CATEGORY_START + 37,
617 "Lock token is incorrect")
619 /** @since New in 1.2. */
620 SVN_ERRDEF(SVN_ERR_FS_NO_LOCK_TOKEN,
621 SVN_ERR_FS_CATEGORY_START + 38,
622 "No lock token provided")
624 /** @since New in 1.2. */
625 SVN_ERRDEF(SVN_ERR_FS_LOCK_OWNER_MISMATCH,
626 SVN_ERR_FS_CATEGORY_START + 39,
627 "Username does not match lock owner")
629 /** @since New in 1.2. */
630 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_LOCK,
631 SVN_ERR_FS_CATEGORY_START + 40,
632 "Filesystem has no such lock")
634 /** @since New in 1.2. */
635 SVN_ERRDEF(SVN_ERR_FS_LOCK_EXPIRED,
636 SVN_ERR_FS_CATEGORY_START + 41,
637 "Lock has expired")
639 /** @since New in 1.2. */
640 SVN_ERRDEF(SVN_ERR_FS_OUT_OF_DATE,
641 SVN_ERR_FS_CATEGORY_START + 42,
642 "Item is out of date")
644 /**@since New in 1.2.
646 * This is analogous to SVN_ERR_REPOS_UNSUPPORTED_VERSION. To avoid
647 * confusion with "versions" (i.e., releases) of Subversion, we've
648 * started calling this the "format" number instead. The old
649 * SVN_ERR_REPOS_UNSUPPORTED_VERSION error predates this and so
650 * retains its name.
652 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_FORMAT,
653 SVN_ERR_FS_CATEGORY_START + 43,
654 "Unsupported FS format")
656 /** @since New in 1.5. */
657 SVN_ERRDEF(SVN_ERR_FS_REP_BEING_WRITTEN,
658 SVN_ERR_FS_CATEGORY_START + 44,
659 "Representation is being written")
661 /** @since New in 1.5. */
662 SVN_ERRDEF(SVN_ERR_FS_TXN_NAME_TOO_LONG,
663 SVN_ERR_FS_CATEGORY_START + 45,
664 "The generated transaction name is too long")
666 /** @since New in 1.5. */
667 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_NODE_ORIGIN,
668 SVN_ERR_FS_CATEGORY_START + 46,
669 "Filesystem has no such node origin record")
671 /** @since New in 1.5. */
672 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_UPGRADE,
673 SVN_ERR_FS_CATEGORY_START + 47,
674 "Filesystem upgrade is not supported")
676 /** @since New in 1.6. */
677 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_CHECKSUM_REP,
678 SVN_ERR_FS_CATEGORY_START + 48,
679 "Filesystem has no such checksum-representation index record")
681 /* repos errors */
683 SVN_ERRDEF(SVN_ERR_REPOS_LOCKED,
684 SVN_ERR_REPOS_CATEGORY_START + 0,
685 "The repository is locked, perhaps for db recovery")
687 SVN_ERRDEF(SVN_ERR_REPOS_HOOK_FAILURE,
688 SVN_ERR_REPOS_CATEGORY_START + 1,
689 "A repository hook failed")
691 SVN_ERRDEF(SVN_ERR_REPOS_BAD_ARGS,
692 SVN_ERR_REPOS_CATEGORY_START + 2,
693 "Incorrect arguments supplied")
695 SVN_ERRDEF(SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
696 SVN_ERR_REPOS_CATEGORY_START + 3,
697 "A report cannot be generated because no data was supplied")
699 SVN_ERRDEF(SVN_ERR_REPOS_BAD_REVISION_REPORT,
700 SVN_ERR_REPOS_CATEGORY_START + 4,
701 "Bogus revision report")
703 /* This is analogous to SVN_ERR_FS_UNSUPPORTED_FORMAT. To avoid
704 * confusion with "versions" (i.e., releases) of Subversion, we
705 * started using the word "format" instead of "version". However,
706 * this error code's name predates that decision.
708 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_VERSION,
709 SVN_ERR_REPOS_CATEGORY_START + 5,
710 "Unsupported repository version")
712 SVN_ERRDEF(SVN_ERR_REPOS_DISABLED_FEATURE,
713 SVN_ERR_REPOS_CATEGORY_START + 6,
714 "Disabled repository feature")
716 SVN_ERRDEF(SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
717 SVN_ERR_REPOS_CATEGORY_START + 7,
718 "Error running post-commit hook")
720 /** @since New in 1.2. */
721 SVN_ERRDEF(SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED,
722 SVN_ERR_REPOS_CATEGORY_START + 8,
723 "Error running post-lock hook")
725 /** @since New in 1.2. */
726 SVN_ERRDEF(SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED,
727 SVN_ERR_REPOS_CATEGORY_START + 9,
728 "Error running post-unlock hook")
730 /** @since New in 1.5. */
731 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_UPGRADE,
732 SVN_ERR_REPOS_CATEGORY_START + 10,
733 "Repository upgrade is not supported")
735 /* generic RA errors */
737 SVN_ERRDEF(SVN_ERR_RA_ILLEGAL_URL,
738 SVN_ERR_RA_CATEGORY_START + 0,
739 "Bad URL passed to RA layer")
741 SVN_ERRDEF(SVN_ERR_RA_NOT_AUTHORIZED,
742 SVN_ERR_RA_CATEGORY_START + 1,
743 "Authorization failed")
745 SVN_ERRDEF(SVN_ERR_RA_UNKNOWN_AUTH,
746 SVN_ERR_RA_CATEGORY_START + 2,
747 "Unknown authorization method")
749 SVN_ERRDEF(SVN_ERR_RA_NOT_IMPLEMENTED,
750 SVN_ERR_RA_CATEGORY_START + 3,
751 "Repository access method not implemented")
753 SVN_ERRDEF(SVN_ERR_RA_OUT_OF_DATE,
754 SVN_ERR_RA_CATEGORY_START + 4,
755 "Item is out of date")
757 SVN_ERRDEF(SVN_ERR_RA_NO_REPOS_UUID,
758 SVN_ERR_RA_CATEGORY_START + 5,
759 "Repository has no UUID")
761 SVN_ERRDEF(SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
762 SVN_ERR_RA_CATEGORY_START + 6,
763 "Unsupported RA plugin ABI version")
765 /** @since New in 1.2. */
766 SVN_ERRDEF(SVN_ERR_RA_NOT_LOCKED,
767 SVN_ERR_RA_CATEGORY_START + 7,
768 "Path is not locked")
770 /** @since New in 1.5. */
771 SVN_ERRDEF(SVN_ERR_RA_PARTIAL_REPLAY_NOT_SUPPORTED,
772 SVN_ERR_RA_CATEGORY_START + 8,
773 "Server can only replay from the root of a repository")
775 /** @since New in 1.5. */
776 SVN_ERRDEF(SVN_ERR_RA_UUID_MISMATCH,
777 SVN_ERR_RA_CATEGORY_START + 9,
778 "Repository UUID does not match expected UUID")
780 /** @since New in 1.6. */
781 SVN_ERRDEF(SVN_ERR_RA_REPOS_ROOT_URL_MISMATCH,
782 SVN_ERR_RA_CATEGORY_START + 10,
783 "Repository root URL does not match expected root URL")
785 /* ra_dav errors */
787 SVN_ERRDEF(SVN_ERR_RA_DAV_SOCK_INIT,
788 SVN_ERR_RA_DAV_CATEGORY_START + 0,
789 "RA layer failed to init socket layer")
791 SVN_ERRDEF(SVN_ERR_RA_DAV_CREATING_REQUEST,
792 SVN_ERR_RA_DAV_CATEGORY_START + 1,
793 "RA layer failed to create HTTP request")
795 SVN_ERRDEF(SVN_ERR_RA_DAV_REQUEST_FAILED,
796 SVN_ERR_RA_DAV_CATEGORY_START + 2,
797 "RA layer request failed")
799 SVN_ERRDEF(SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
800 SVN_ERR_RA_DAV_CATEGORY_START + 3,
801 "RA layer didn't receive requested OPTIONS info")
803 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
804 SVN_ERR_RA_DAV_CATEGORY_START + 4,
805 "RA layer failed to fetch properties")
807 SVN_ERRDEF(SVN_ERR_RA_DAV_ALREADY_EXISTS,
808 SVN_ERR_RA_DAV_CATEGORY_START + 5,
809 "RA layer file already exists")
811 /** @deprecated To improve consistency between ra layers, this error code
812 is replaced by SVN_ERR_BAD_CONFIG_VALUE.
813 Slated for removal in the next major release. */
814 SVN_ERRDEF(SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
815 SVN_ERR_RA_DAV_CATEGORY_START + 6,
816 "Invalid configuration value")
818 /** @deprecated To improve consistency between ra layers, this error code
819 is replaced in ra_{neon|serf} by SVN_ERR_FS_NOT_FOUND.
820 Slated for removal in the next major release. */
821 SVN_ERRDEF(SVN_ERR_RA_DAV_PATH_NOT_FOUND,
822 SVN_ERR_RA_DAV_CATEGORY_START + 7,
823 "HTTP Path Not Found")
825 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPPATCH_FAILED,
826 SVN_ERR_RA_DAV_CATEGORY_START + 8,
827 "Failed to execute WebDAV PROPPATCH")
829 /** @since New in 1.2. */
830 SVN_ERRDEF(SVN_ERR_RA_DAV_MALFORMED_DATA,
831 SVN_ERR_RA_DAV_CATEGORY_START + 9,
832 "Malformed network data")
834 /** @since New in 1.3 */
835 SVN_ERRDEF(SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS,
836 SVN_ERR_RA_DAV_CATEGORY_START + 10,
837 "Unable to extract data from response header")
839 /** @since New in 1.5 */
840 SVN_ERRDEF(SVN_ERR_RA_DAV_RELOCATED,
841 SVN_ERR_RA_DAV_CATEGORY_START + 11,
842 "Repository has been moved")
844 /* ra_local errors */
846 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
847 SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
848 "Couldn't find a repository")
850 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
851 SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
852 "Couldn't open a repository")
853 /* ra_svn errors */
855 SVN_ERRDEF(SVN_ERR_RA_SVN_CMD_ERR,
856 SVN_ERR_RA_SVN_CATEGORY_START + 0,
857 "Special code for wrapping server errors to report to client")
859 SVN_ERRDEF(SVN_ERR_RA_SVN_UNKNOWN_CMD,
860 SVN_ERR_RA_SVN_CATEGORY_START + 1,
861 "Unknown svn protocol command")
863 SVN_ERRDEF(SVN_ERR_RA_SVN_CONNECTION_CLOSED,
864 SVN_ERR_RA_SVN_CATEGORY_START + 2,
865 "Network connection closed unexpectedly")
867 SVN_ERRDEF(SVN_ERR_RA_SVN_IO_ERROR,
868 SVN_ERR_RA_SVN_CATEGORY_START + 3,
869 "Network read/write error")
871 SVN_ERRDEF(SVN_ERR_RA_SVN_MALFORMED_DATA,
872 SVN_ERR_RA_SVN_CATEGORY_START + 4,
873 "Malformed network data")
875 SVN_ERRDEF(SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
876 SVN_ERR_RA_SVN_CATEGORY_START + 5,
877 "Couldn't find a repository")
879 SVN_ERRDEF(SVN_ERR_RA_SVN_BAD_VERSION,
880 SVN_ERR_RA_SVN_CATEGORY_START + 6,
881 "Client/server version mismatch")
883 /** @since New in 1.5. */
884 SVN_ERRDEF(SVN_ERR_RA_SVN_NO_MECHANISMS,
885 SVN_ERR_RA_SVN_CATEGORY_START + 7,
886 "Cannot negotiate authentication mechanism")
888 /* libsvn_ra_serf errors */
889 /** @since New in 1.5. */
890 SVN_ERRDEF(SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED,
891 SVN_ERR_RA_SERF_CATEGORY_START + 0,
892 "Initialization of SSPI library failed")
893 /** @since New in 1.5. */
894 SVN_ERRDEF(SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED,
895 SVN_ERR_RA_SERF_CATEGORY_START + 1,
896 "Server SSL certificate untrusted")
898 /* libsvn_auth errors */
900 /* this error can be used when an auth provider doesn't have
901 the creds, but no other "real" error occurred. */
902 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
903 SVN_ERR_AUTHN_CATEGORY_START + 0,
904 "Credential data unavailable")
906 SVN_ERRDEF(SVN_ERR_AUTHN_NO_PROVIDER,
907 SVN_ERR_AUTHN_CATEGORY_START + 1,
908 "No authentication provider available")
910 SVN_ERRDEF(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
911 SVN_ERR_AUTHN_CATEGORY_START + 2,
912 "All authentication providers exhausted")
914 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_NOT_SAVED,
915 SVN_ERR_AUTHN_CATEGORY_START + 3,
916 "Credentials not saved")
918 /** @since New in 1.5. */
919 SVN_ERRDEF(SVN_ERR_AUTHN_FAILED,
920 SVN_ERR_AUTHN_CATEGORY_START + 4,
921 "Authentication failed")
923 /* authorization errors */
925 SVN_ERRDEF(SVN_ERR_AUTHZ_ROOT_UNREADABLE,
926 SVN_ERR_AUTHZ_CATEGORY_START + 0,
927 "Read access denied for root of edit")
929 /** @since New in 1.1. */
930 SVN_ERRDEF(SVN_ERR_AUTHZ_UNREADABLE,
931 SVN_ERR_AUTHZ_CATEGORY_START + 1,
932 "Item is not readable")
934 /** @since New in 1.1. */
935 SVN_ERRDEF(SVN_ERR_AUTHZ_PARTIALLY_READABLE,
936 SVN_ERR_AUTHZ_CATEGORY_START + 2,
937 "Item is partially readable")
939 SVN_ERRDEF(SVN_ERR_AUTHZ_INVALID_CONFIG,
940 SVN_ERR_AUTHZ_CATEGORY_START + 3,
941 "Invalid authz configuration")
943 /** @since New in 1.3 */
944 SVN_ERRDEF(SVN_ERR_AUTHZ_UNWRITABLE,
945 SVN_ERR_AUTHZ_CATEGORY_START + 4,
946 "Item is not writable")
948 /* svndiff errors */
950 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_HEADER,
951 SVN_ERR_SVNDIFF_CATEGORY_START + 0,
952 "Svndiff data has invalid header")
954 SVN_ERRDEF(SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
955 SVN_ERR_SVNDIFF_CATEGORY_START + 1,
956 "Svndiff data contains corrupt window")
958 SVN_ERRDEF(SVN_ERR_SVNDIFF_BACKWARD_VIEW,
959 SVN_ERR_SVNDIFF_CATEGORY_START + 2,
960 "Svndiff data contains backward-sliding source view")
962 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_OPS,
963 SVN_ERR_SVNDIFF_CATEGORY_START + 3,
964 "Svndiff data contains invalid instruction")
966 SVN_ERRDEF(SVN_ERR_SVNDIFF_UNEXPECTED_END,
967 SVN_ERR_SVNDIFF_CATEGORY_START + 4,
968 "Svndiff data ends unexpectedly")
970 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA,
971 SVN_ERR_SVNDIFF_CATEGORY_START + 5,
972 "Svndiff compressed data is invalid")
974 /* libsvn_diff errors */
976 SVN_ERRDEF(SVN_ERR_DIFF_DATASOURCE_MODIFIED,
977 SVN_ERR_DIFF_CATEGORY_START + 0,
978 "Diff data source modified unexpectedly")
980 /* mod_dav_svn errors */
982 SVN_ERRDEF(SVN_ERR_APMOD_MISSING_PATH_TO_FS,
983 SVN_ERR_APMOD_CATEGORY_START + 0,
984 "Apache has no path to an SVN filesystem")
986 SVN_ERRDEF(SVN_ERR_APMOD_MALFORMED_URI,
987 SVN_ERR_APMOD_CATEGORY_START + 1,
988 "Apache got a malformed URI")
990 SVN_ERRDEF(SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
991 SVN_ERR_APMOD_CATEGORY_START + 2,
992 "Activity not found")
994 SVN_ERRDEF(SVN_ERR_APMOD_BAD_BASELINE,
995 SVN_ERR_APMOD_CATEGORY_START + 3,
996 "Baseline incorrect")
998 SVN_ERRDEF(SVN_ERR_APMOD_CONNECTION_ABORTED,
999 SVN_ERR_APMOD_CATEGORY_START + 4,
1000 "Input/output error")
1002 /* libsvn_client errors */
1004 SVN_ERRDEF(SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
1005 SVN_ERR_CLIENT_CATEGORY_START + 0,
1006 "A path under version control is needed for this operation")
1008 SVN_ERRDEF(SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
1009 SVN_ERR_CLIENT_CATEGORY_START + 1,
1010 "Repository access is needed for this operation")
1012 SVN_ERRDEF(SVN_ERR_CLIENT_BAD_REVISION,
1013 SVN_ERR_CLIENT_CATEGORY_START + 2,
1014 "Bogus revision information given")
1016 SVN_ERRDEF(SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
1017 SVN_ERR_CLIENT_CATEGORY_START + 3,
1018 "Attempting to commit to a URL more than once")
1020 SVN_ERRDEF(SVN_ERR_CLIENT_IS_BINARY_FILE,
1021 SVN_ERR_CLIENT_CATEGORY_START + 4,
1022 "Operation does not apply to binary file")
1024 /*### SVN_PROP_EXTERNALS needed to be replaced with "svn:externals"
1025 in order to get gettext translatable strings */
1026 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
1027 SVN_ERR_CLIENT_CATEGORY_START + 5,
1028 "Format of an svn:externals property was invalid")
1030 SVN_ERRDEF(SVN_ERR_CLIENT_MODIFIED,
1031 SVN_ERR_CLIENT_CATEGORY_START + 6,
1032 "Attempting restricted operation for modified resource")
1034 SVN_ERRDEF(SVN_ERR_CLIENT_IS_DIRECTORY,
1035 SVN_ERR_CLIENT_CATEGORY_START + 7,
1036 "Operation does not apply to directory")
1038 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_RANGE,
1039 SVN_ERR_CLIENT_CATEGORY_START + 8,
1040 "Revision range is not allowed")
1042 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_RELOCATION,
1043 SVN_ERR_CLIENT_CATEGORY_START + 9,
1044 "Inter-repository relocation not allowed")
1046 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
1047 SVN_ERR_CLIENT_CATEGORY_START + 10,
1048 "Author name cannot contain a newline")
1050 SVN_ERRDEF(SVN_ERR_CLIENT_PROPERTY_NAME,
1051 SVN_ERR_CLIENT_CATEGORY_START + 11,
1052 "Bad property name")
1054 /** @since New in 1.1. */
1055 SVN_ERRDEF(SVN_ERR_CLIENT_UNRELATED_RESOURCES,
1056 SVN_ERR_CLIENT_CATEGORY_START + 12,
1057 "Two versioned resources are unrelated")
1059 /** @since New in 1.2. */
1060 SVN_ERRDEF(SVN_ERR_CLIENT_MISSING_LOCK_TOKEN,
1061 SVN_ERR_CLIENT_CATEGORY_START + 13,
1062 "Path has no lock token")
1064 /** @since New in 1.5. */
1065 SVN_ERRDEF(SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED,
1066 SVN_ERR_CLIENT_CATEGORY_START + 14,
1067 "Operation does not support multiple sources")
1069 /** @since New in 1.5. */
1070 SVN_ERRDEF(SVN_ERR_CLIENT_NO_VERSIONED_PARENT,
1071 SVN_ERR_CLIENT_CATEGORY_START + 15,
1072 "No versioned parent directories")
1074 /** @since New in 1.5. */
1075 SVN_ERRDEF(SVN_ERR_CLIENT_NOT_READY_TO_MERGE,
1076 SVN_ERR_CLIENT_CATEGORY_START + 16,
1077 "Working copy and merge source not ready for reintegration")
1079 /** @since New in 1.6. */
1080 SVN_ERRDEF(SVN_ERR_CLIENT_FILE_EXTERNAL_OVERWRITE_VERSIONED,
1081 SVN_ERR_CLIENT_CATEGORY_START + 17,
1082 "A file external cannot overwrite an existing versioned item")
1084 /* misc errors */
1086 SVN_ERRDEF(SVN_ERR_BASE,
1087 SVN_ERR_MISC_CATEGORY_START + 0,
1088 "A problem occurred; see other errors for details")
1090 SVN_ERRDEF(SVN_ERR_PLUGIN_LOAD_FAILURE,
1091 SVN_ERR_MISC_CATEGORY_START + 1,
1092 "Failure loading plugin")
1094 SVN_ERRDEF(SVN_ERR_MALFORMED_FILE,
1095 SVN_ERR_MISC_CATEGORY_START + 2,
1096 "Malformed file")
1098 SVN_ERRDEF(SVN_ERR_INCOMPLETE_DATA,
1099 SVN_ERR_MISC_CATEGORY_START + 3,
1100 "Incomplete data")
1102 SVN_ERRDEF(SVN_ERR_INCORRECT_PARAMS,
1103 SVN_ERR_MISC_CATEGORY_START + 4,
1104 "Incorrect parameters given")
1106 SVN_ERRDEF(SVN_ERR_UNVERSIONED_RESOURCE,
1107 SVN_ERR_MISC_CATEGORY_START + 5,
1108 "Tried a versioning operation on an unversioned resource")
1110 SVN_ERRDEF(SVN_ERR_TEST_FAILED,
1111 SVN_ERR_MISC_CATEGORY_START + 6,
1112 "Test failed")
1114 SVN_ERRDEF(SVN_ERR_UNSUPPORTED_FEATURE,
1115 SVN_ERR_MISC_CATEGORY_START + 7,
1116 "Trying to use an unsupported feature")
1118 SVN_ERRDEF(SVN_ERR_BAD_PROP_KIND,
1119 SVN_ERR_MISC_CATEGORY_START + 8,
1120 "Unexpected or unknown property kind")
1122 SVN_ERRDEF(SVN_ERR_ILLEGAL_TARGET,
1123 SVN_ERR_MISC_CATEGORY_START + 9,
1124 "Illegal target for the requested operation")
1126 SVN_ERRDEF(SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
1127 SVN_ERR_MISC_CATEGORY_START + 10,
1128 "MD5 checksum is missing")
1130 SVN_ERRDEF(SVN_ERR_DIR_NOT_EMPTY,
1131 SVN_ERR_MISC_CATEGORY_START + 11,
1132 "Directory needs to be empty but is not")
1134 SVN_ERRDEF(SVN_ERR_EXTERNAL_PROGRAM,
1135 SVN_ERR_MISC_CATEGORY_START + 12,
1136 "Error calling external program")
1138 SVN_ERRDEF(SVN_ERR_SWIG_PY_EXCEPTION_SET,
1139 SVN_ERR_MISC_CATEGORY_START + 13,
1140 "Python exception has been set with the error")
1142 SVN_ERRDEF(SVN_ERR_CHECKSUM_MISMATCH,
1143 SVN_ERR_MISC_CATEGORY_START + 14,
1144 "A checksum mismatch occurred")
1146 SVN_ERRDEF(SVN_ERR_CANCELLED,
1147 SVN_ERR_MISC_CATEGORY_START + 15,
1148 "The operation was interrupted")
1150 SVN_ERRDEF(SVN_ERR_INVALID_DIFF_OPTION,
1151 SVN_ERR_MISC_CATEGORY_START + 16,
1152 "The specified diff option is not supported")
1154 SVN_ERRDEF(SVN_ERR_PROPERTY_NOT_FOUND,
1155 SVN_ERR_MISC_CATEGORY_START + 17,
1156 "Property not found")
1158 SVN_ERRDEF(SVN_ERR_NO_AUTH_FILE_PATH,
1159 SVN_ERR_MISC_CATEGORY_START + 18,
1160 "No auth file path available")
1162 /** @since New in 1.1. */
1163 SVN_ERRDEF(SVN_ERR_VERSION_MISMATCH,
1164 SVN_ERR_MISC_CATEGORY_START + 19,
1165 "Incompatible library version")
1167 /** @since New in 1.5. */
1168 SVN_ERRDEF(SVN_ERR_MERGEINFO_PARSE_ERROR,
1169 SVN_ERR_MISC_CATEGORY_START + 20,
1170 "Mergeinfo parse error")
1172 /** @since New in 1.5. */
1173 SVN_ERRDEF(SVN_ERR_CEASE_INVOCATION,
1174 SVN_ERR_MISC_CATEGORY_START + 21,
1175 "Cease invocation of this API")
1177 /** @since New in 1.5. */
1178 SVN_ERRDEF(SVN_ERR_REVNUM_PARSE_FAILURE,
1179 SVN_ERR_MISC_CATEGORY_START + 22,
1180 "Error parsing revision number")
1182 /** @since New in 1.5. */
1183 SVN_ERRDEF(SVN_ERR_ITER_BREAK,
1184 SVN_ERR_MISC_CATEGORY_START + 23,
1185 "Iteration terminated before completion")
1187 /** @since New in 1.5. */
1188 SVN_ERRDEF(SVN_ERR_UNKNOWN_CHANGELIST,
1189 SVN_ERR_MISC_CATEGORY_START + 24,
1190 "Unknown changelist")
1192 /** @since New in 1.5. */
1193 SVN_ERRDEF(SVN_ERR_RESERVED_FILENAME_SPECIFIED,
1194 SVN_ERR_MISC_CATEGORY_START + 25,
1195 "Reserved directory name in command line arguments")
1197 /** @since New in 1.5. */
1198 SVN_ERRDEF(SVN_ERR_UNKNOWN_CAPABILITY,
1199 SVN_ERR_MISC_CATEGORY_START + 26,
1200 "Inquiry about unknown capability")
1202 /** @since New in 1.6. */
1203 SVN_ERRDEF(SVN_ERR_TEST_SKIPPED,
1204 SVN_ERR_MISC_CATEGORY_START + 27,
1205 "Test skipped")
1207 /** @since New in 1.6. */
1208 SVN_ERRDEF(SVN_ERR_NO_APR_MEMCACHE,
1209 SVN_ERR_MISC_CATEGORY_START + 28,
1210 "apr memcache library not available")
1212 /** @since New in 1.6. */
1213 SVN_ERRDEF(SVN_ERR_ATOMIC_INIT_FAILURE,
1214 SVN_ERR_MISC_CATEGORY_START + 29,
1215 "Couldn't perform atomic initialization")
1217 /** @since New in 1.6. */
1218 SVN_ERRDEF(SVN_ERR_SQLITE_ERROR,
1219 SVN_ERR_MISC_CATEGORY_START + 30,
1220 "SQLite error")
1222 /** @since New in 1.6. */
1223 SVN_ERRDEF(SVN_ERR_SQLITE_READONLY,
1224 SVN_ERR_MISC_CATEGORY_START + 31,
1225 "Attempted to write to readonly SQLite db")
1227 /** @since New in 1.6. */
1228 SVN_ERRDEF(SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA,
1229 SVN_ERR_MISC_CATEGORY_START + 32,
1230 "Unsupported schema found in SQLite db")
1232 /* command-line client errors */
1234 SVN_ERRDEF(SVN_ERR_CL_ARG_PARSING_ERROR,
1235 SVN_ERR_CL_CATEGORY_START + 0,
1236 "Error parsing arguments")
1238 SVN_ERRDEF(SVN_ERR_CL_INSUFFICIENT_ARGS,
1239 SVN_ERR_CL_CATEGORY_START + 1,
1240 "Not enough arguments provided")
1242 SVN_ERRDEF(SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
1243 SVN_ERR_CL_CATEGORY_START + 2,
1244 "Mutually exclusive arguments specified")
1246 SVN_ERRDEF(SVN_ERR_CL_ADM_DIR_RESERVED,
1247 SVN_ERR_CL_CATEGORY_START + 3,
1248 "Attempted command in administrative dir")
1250 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
1251 SVN_ERR_CL_CATEGORY_START + 4,
1252 "The log message file is under version control")
1254 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
1255 SVN_ERR_CL_CATEGORY_START + 5,
1256 "The log message is a pathname")
1258 SVN_ERRDEF(SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
1259 SVN_ERR_CL_CATEGORY_START + 6,
1260 "Committing in directory scheduled for addition")
1262 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_EDITOR,
1263 SVN_ERR_CL_CATEGORY_START + 7,
1264 "No external editor available")
1266 SVN_ERRDEF(SVN_ERR_CL_BAD_LOG_MESSAGE,
1267 SVN_ERR_CL_CATEGORY_START + 8,
1268 "Something is wrong with the log message's contents")
1270 SVN_ERRDEF(SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE,
1271 SVN_ERR_CL_CATEGORY_START + 9,
1272 "A log message was given where none was necessary")
1274 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_MERGE_TOOL,
1275 SVN_ERR_CL_CATEGORY_START + 10,
1276 "No external merge tool available")
1278 /* malfunctions such as assertion failures */
1280 SVN_ERRDEF(SVN_ERR_ASSERTION_FAIL,
1281 SVN_ERR_MALFUNC_CATEGORY_START + 0,
1282 "Assertion failure")
1284 SVN_ERROR_END
1287 #undef SVN_ERROR_START
1288 #undef SVN_ERRDEF
1289 #undef SVN_ERROR_END
1291 #ifdef __cplusplus
1293 #endif /* __cplusplus */
1295 #endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */