3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
20 * ====================================================================
23 * @file svn_error_codes.h
24 * @brief Subversion error codes.
27 /* What's going on here?
29 In order to define error codes and their associated description
30 strings in the same place, we overload the SVN_ERRDEF() macro with
31 two definitions below. Both take two arguments, an error code name
32 and a description string. One definition of the macro just throws
33 away the string and defines enumeration constants using the error
34 code names -- that definition is used by the header file that
35 exports error codes to the rest of Subversion. The other
36 definition creates a static table mapping the enum codes to their
37 corresponding strings -- that definition is used by the C file that
38 implements svn_strerror().
40 The header and C files both include this file, using #defines to
41 control which version of the macro they get.
45 /* Process this file if we're building an error array, or if we have
46 not defined the enumerated constants yet. */
47 #if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED)
49 /* Note: despite lacking double underscores in its name, the macro
50 SVN_ERROR_BUILD_ARRAY is an implementation detail of Subversion and not
54 #include <apr_errno.h> /* APR's error system */
58 #endif /* __cplusplus */
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 #if defined(SVN_ERROR_BUILD_ARRAY)
64 #define SVN_ERROR_START \
65 static const err_defn error_table[] = { \
66 { SVN_WARNING, "SVN_WARNING", "Warning" },
67 #define SVN_ERRDEF(num, offset, str) { num, #num, str },
68 #define SVN_ERROR_END { 0, NULL, NULL } };
70 #elif !defined(SVN_ERROR_ENUM_DEFINED)
72 #define SVN_ERROR_START \
73 typedef enum svn_errno_t { \
74 SVN_WARNING = APR_OS_START_USERERR + 1,
75 #define SVN_ERRDEF(num, offset, str) /** str */ num = offset,
76 #define SVN_ERROR_END SVN_ERR_LAST } svn_errno_t;
78 #define SVN_ERROR_ENUM_DEFINED
82 /* Define custom Subversion error numbers, in the range reserved for
83 that in APR: from APR_OS_START_USERERR to APR_OS_START_SYSERR (see
86 Error numbers are divided into categories of up to 5000 errors
87 each. Since we're dividing up the APR user error space, which has
88 room for 500,000 errors, we can have up to 100 categories.
89 Categories are fixed-size; if a category has fewer than 5000
90 errors, then it just ends with a range of unused numbers.
92 To maintain binary compatibility, please observe these guidelines:
94 - When adding a new error, always add on the end of the
95 appropriate category, so that the real values of existing
96 errors are not changed.
98 - When deleting an error, leave a placeholder comment indicating
99 the offset, again so that the values of other errors are not
103 #define SVN_ERR_CATEGORY_SIZE 5000
105 /* Leave one category of room at the beginning, for SVN_WARNING and
106 any other such beasts we might create in the future. */
107 #define SVN_ERR_BAD_CATEGORY_START (APR_OS_START_USERERR \
108 + ( 1 * SVN_ERR_CATEGORY_SIZE))
109 #define SVN_ERR_XML_CATEGORY_START (APR_OS_START_USERERR \
110 + ( 2 * SVN_ERR_CATEGORY_SIZE))
111 #define SVN_ERR_IO_CATEGORY_START (APR_OS_START_USERERR \
112 + ( 3 * SVN_ERR_CATEGORY_SIZE))
113 #define SVN_ERR_STREAM_CATEGORY_START (APR_OS_START_USERERR \
114 + ( 4 * SVN_ERR_CATEGORY_SIZE))
115 #define SVN_ERR_NODE_CATEGORY_START (APR_OS_START_USERERR \
116 + ( 5 * SVN_ERR_CATEGORY_SIZE))
117 #define SVN_ERR_ENTRY_CATEGORY_START (APR_OS_START_USERERR \
118 + ( 6 * SVN_ERR_CATEGORY_SIZE))
119 #define SVN_ERR_WC_CATEGORY_START (APR_OS_START_USERERR \
120 + ( 7 * SVN_ERR_CATEGORY_SIZE))
121 #define SVN_ERR_FS_CATEGORY_START (APR_OS_START_USERERR \
122 + ( 8 * SVN_ERR_CATEGORY_SIZE))
123 #define SVN_ERR_REPOS_CATEGORY_START (APR_OS_START_USERERR \
124 + ( 9 * SVN_ERR_CATEGORY_SIZE))
125 #define SVN_ERR_RA_CATEGORY_START (APR_OS_START_USERERR \
126 + (10 * SVN_ERR_CATEGORY_SIZE))
127 #define SVN_ERR_RA_DAV_CATEGORY_START (APR_OS_START_USERERR \
128 + (11 * SVN_ERR_CATEGORY_SIZE))
129 #define SVN_ERR_RA_LOCAL_CATEGORY_START (APR_OS_START_USERERR \
130 + (12 * SVN_ERR_CATEGORY_SIZE))
131 #define SVN_ERR_SVNDIFF_CATEGORY_START (APR_OS_START_USERERR \
132 + (13 * SVN_ERR_CATEGORY_SIZE))
133 #define SVN_ERR_APMOD_CATEGORY_START (APR_OS_START_USERERR \
134 + (14 * SVN_ERR_CATEGORY_SIZE))
135 #define SVN_ERR_CLIENT_CATEGORY_START (APR_OS_START_USERERR \
136 + (15 * SVN_ERR_CATEGORY_SIZE))
137 #define SVN_ERR_MISC_CATEGORY_START (APR_OS_START_USERERR \
138 + (16 * SVN_ERR_CATEGORY_SIZE))
139 #define SVN_ERR_CL_CATEGORY_START (APR_OS_START_USERERR \
140 + (17 * SVN_ERR_CATEGORY_SIZE))
141 #define SVN_ERR_RA_SVN_CATEGORY_START (APR_OS_START_USERERR \
142 + (18 * SVN_ERR_CATEGORY_SIZE))
143 #define SVN_ERR_AUTHN_CATEGORY_START (APR_OS_START_USERERR \
144 + (19 * SVN_ERR_CATEGORY_SIZE))
145 #define SVN_ERR_AUTHZ_CATEGORY_START (APR_OS_START_USERERR \
146 + (20 * SVN_ERR_CATEGORY_SIZE))
147 #define SVN_ERR_DIFF_CATEGORY_START (APR_OS_START_USERERR \
148 + (21 * SVN_ERR_CATEGORY_SIZE))
149 #define SVN_ERR_RA_SERF_CATEGORY_START (APR_OS_START_USERERR \
150 + (22 * SVN_ERR_CATEGORY_SIZE))
151 #define SVN_ERR_MALFUNC_CATEGORY_START (APR_OS_START_USERERR \
152 + (23 * SVN_ERR_CATEGORY_SIZE))
153 #define SVN_ERR_X509_CATEGORY_START (APR_OS_START_USERERR \
154 + (24 * SVN_ERR_CATEGORY_SIZE))
156 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
158 /** Collection of Subversion error code values, located within the
159 * APR user error space. */
162 /* validation ("BAD_FOO") errors */
164 SVN_ERRDEF(SVN_ERR_BAD_CONTAINING_POOL,
165 SVN_ERR_BAD_CATEGORY_START + 0,
166 "Bad parent pool passed to svn_make_pool()")
168 SVN_ERRDEF(SVN_ERR_BAD_FILENAME,
169 SVN_ERR_BAD_CATEGORY_START + 1,
172 SVN_ERRDEF(SVN_ERR_BAD_URL,
173 SVN_ERR_BAD_CATEGORY_START + 2,
176 SVN_ERRDEF(SVN_ERR_BAD_DATE,
177 SVN_ERR_BAD_CATEGORY_START + 3,
180 SVN_ERRDEF(SVN_ERR_BAD_MIME_TYPE,
181 SVN_ERR_BAD_CATEGORY_START + 4,
184 /** @since New in 1.5.
186 * Note that there was an unused slot sitting here at
187 * SVN_ERR_BAD_CATEGORY_START + 5, so error codes after this aren't
188 * necessarily "New in 1.5" just because they come later.
190 SVN_ERRDEF(SVN_ERR_BAD_PROPERTY_VALUE,
191 SVN_ERR_BAD_CATEGORY_START + 5,
192 "Wrong or unexpected property value")
194 SVN_ERRDEF(SVN_ERR_BAD_VERSION_FILE_FORMAT,
195 SVN_ERR_BAD_CATEGORY_START + 6,
196 "Version file format not correct")
198 SVN_ERRDEF(SVN_ERR_BAD_RELATIVE_PATH,
199 SVN_ERR_BAD_CATEGORY_START + 7,
200 "Path is not an immediate child of the specified directory")
202 SVN_ERRDEF(SVN_ERR_BAD_UUID,
203 SVN_ERR_BAD_CATEGORY_START + 8,
206 /** @since New in 1.6. */
207 SVN_ERRDEF(SVN_ERR_BAD_CONFIG_VALUE,
208 SVN_ERR_BAD_CATEGORY_START + 9,
209 "Invalid configuration value")
211 SVN_ERRDEF(SVN_ERR_BAD_SERVER_SPECIFICATION,
212 SVN_ERR_BAD_CATEGORY_START + 10,
213 "Bogus server specification")
215 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_KIND,
216 SVN_ERR_BAD_CATEGORY_START + 11,
217 "Unsupported checksum type")
219 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_PARSE,
220 SVN_ERR_BAD_CATEGORY_START + 12,
221 "Invalid character in hex checksum")
223 /** @since New in 1.7. */
224 SVN_ERRDEF(SVN_ERR_BAD_TOKEN,
225 SVN_ERR_BAD_CATEGORY_START + 13,
226 "Unknown string value of token")
228 /** @since New in 1.7. */
229 SVN_ERRDEF(SVN_ERR_BAD_CHANGELIST_NAME,
230 SVN_ERR_BAD_CATEGORY_START + 14,
231 "Invalid changelist name")
233 /** @since New in 1.8. */
234 SVN_ERRDEF(SVN_ERR_BAD_ATOMIC,
235 SVN_ERR_BAD_CATEGORY_START + 15,
238 /** @since New in 1.9. */
239 SVN_ERRDEF(SVN_ERR_BAD_COMPRESSION_METHOD,
240 SVN_ERR_BAD_CATEGORY_START + 16,
241 "Invalid compression method")
245 SVN_ERRDEF(SVN_ERR_XML_ATTRIB_NOT_FOUND,
246 SVN_ERR_XML_CATEGORY_START + 0,
247 "No such XML tag attribute")
249 SVN_ERRDEF(SVN_ERR_XML_MISSING_ANCESTRY,
250 SVN_ERR_XML_CATEGORY_START + 1,
251 "<delta-pkg> is missing ancestry")
253 SVN_ERRDEF(SVN_ERR_XML_UNKNOWN_ENCODING,
254 SVN_ERR_XML_CATEGORY_START + 2,
255 "Unrecognized binary data encoding; can't decode")
257 SVN_ERRDEF(SVN_ERR_XML_MALFORMED,
258 SVN_ERR_XML_CATEGORY_START + 3,
259 "XML data was not well-formed")
261 SVN_ERRDEF(SVN_ERR_XML_UNESCAPABLE_DATA,
262 SVN_ERR_XML_CATEGORY_START + 4,
263 "Data cannot be safely XML-escaped")
265 /** @since New in 1.9. */
266 SVN_ERRDEF(SVN_ERR_XML_UNEXPECTED_ELEMENT,
267 SVN_ERR_XML_CATEGORY_START + 5,
268 "Unexpected XML element found")
272 SVN_ERRDEF(SVN_ERR_IO_INCONSISTENT_EOL,
273 SVN_ERR_IO_CATEGORY_START + 0,
274 "Inconsistent line ending style")
276 SVN_ERRDEF(SVN_ERR_IO_UNKNOWN_EOL,
277 SVN_ERR_IO_CATEGORY_START + 1,
278 "Unrecognized line ending style")
280 /** @deprecated Unused, slated for removal in the next major release. */
281 SVN_ERRDEF(SVN_ERR_IO_CORRUPT_EOL,
282 SVN_ERR_IO_CATEGORY_START + 2,
283 "Line endings other than expected")
285 SVN_ERRDEF(SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
286 SVN_ERR_IO_CATEGORY_START + 3,
287 "Ran out of unique names")
289 /** @deprecated Unused, slated for removal in the next major release. */
290 SVN_ERRDEF(SVN_ERR_IO_PIPE_FRAME_ERROR,
291 SVN_ERR_IO_CATEGORY_START + 4,
292 "Framing error in pipe protocol")
294 /** @deprecated Unused, slated for removal in the next major release. */
295 SVN_ERRDEF(SVN_ERR_IO_PIPE_READ_ERROR,
296 SVN_ERR_IO_CATEGORY_START + 5,
297 "Read error in pipe")
299 SVN_ERRDEF(SVN_ERR_IO_WRITE_ERROR,
300 SVN_ERR_IO_CATEGORY_START + 6,
303 /** @since New in 1.7. */
304 SVN_ERRDEF(SVN_ERR_IO_PIPE_WRITE_ERROR,
305 SVN_ERR_IO_CATEGORY_START + 7,
306 "Write error in pipe")
310 SVN_ERRDEF(SVN_ERR_STREAM_UNEXPECTED_EOF,
311 SVN_ERR_STREAM_CATEGORY_START + 0,
312 "Unexpected EOF on stream")
314 SVN_ERRDEF(SVN_ERR_STREAM_MALFORMED_DATA,
315 SVN_ERR_STREAM_CATEGORY_START + 1,
316 "Malformed stream data")
318 SVN_ERRDEF(SVN_ERR_STREAM_UNRECOGNIZED_DATA,
319 SVN_ERR_STREAM_CATEGORY_START + 2,
320 "Unrecognized stream data")
322 /** @since New in 1.7. */
323 SVN_ERRDEF(SVN_ERR_STREAM_SEEK_NOT_SUPPORTED,
324 SVN_ERR_STREAM_CATEGORY_START + 3,
325 "Stream doesn't support seeking")
327 /** Since New in 1.9. */
328 SVN_ERRDEF(SVN_ERR_STREAM_NOT_SUPPORTED,
329 SVN_ERR_STREAM_CATEGORY_START + 4,
330 "Stream doesn't support this capability")
334 SVN_ERRDEF(SVN_ERR_NODE_UNKNOWN_KIND,
335 SVN_ERR_NODE_CATEGORY_START + 0,
336 "Unknown svn_node_kind")
338 SVN_ERRDEF(SVN_ERR_NODE_UNEXPECTED_KIND,
339 SVN_ERR_NODE_CATEGORY_START + 1,
340 "Unexpected node kind found")
344 SVN_ERRDEF(SVN_ERR_ENTRY_NOT_FOUND,
345 SVN_ERR_ENTRY_CATEGORY_START + 0,
346 "Can't find an entry")
348 /* UNUSED error slot: + 1 */
350 SVN_ERRDEF(SVN_ERR_ENTRY_EXISTS,
351 SVN_ERR_ENTRY_CATEGORY_START + 2,
352 "Entry already exists")
354 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_REVISION,
355 SVN_ERR_ENTRY_CATEGORY_START + 3,
356 "Entry has no revision")
358 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_URL,
359 SVN_ERR_ENTRY_CATEGORY_START + 4,
362 SVN_ERRDEF(SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
363 SVN_ERR_ENTRY_CATEGORY_START + 5,
364 "Entry has an invalid attribute")
366 SVN_ERRDEF(SVN_ERR_ENTRY_FORBIDDEN,
367 SVN_ERR_ENTRY_CATEGORY_START + 6,
368 "Can't create an entry for a forbidden name")
372 SVN_ERRDEF(SVN_ERR_WC_OBSTRUCTED_UPDATE,
373 SVN_ERR_WC_CATEGORY_START + 0,
376 /** @deprecated Unused, slated for removal in the next major release. */
377 SVN_ERRDEF(SVN_ERR_WC_UNWIND_MISMATCH,
378 SVN_ERR_WC_CATEGORY_START + 1,
379 "Mismatch popping the WC unwind stack")
381 /** @deprecated Unused, slated for removal in the next major release. */
382 SVN_ERRDEF(SVN_ERR_WC_UNWIND_EMPTY,
383 SVN_ERR_WC_CATEGORY_START + 2,
384 "Attempt to pop empty WC unwind stack")
386 /** @deprecated Unused, slated for removal in the next major release. */
387 SVN_ERRDEF(SVN_ERR_WC_UNWIND_NOT_EMPTY,
388 SVN_ERR_WC_CATEGORY_START + 3,
389 "Attempt to unlock with non-empty unwind stack")
391 SVN_ERRDEF(SVN_ERR_WC_LOCKED,
392 SVN_ERR_WC_CATEGORY_START + 4,
393 "Attempted to lock an already-locked dir")
395 SVN_ERRDEF(SVN_ERR_WC_NOT_LOCKED,
396 SVN_ERR_WC_CATEGORY_START + 5,
397 "Working copy not locked; this is probably a bug, please report")
399 /** @deprecated Unused, slated for removal in the next major release. */
400 SVN_ERRDEF(SVN_ERR_WC_INVALID_LOCK,
401 SVN_ERR_WC_CATEGORY_START + 6,
404 /** @since New in 1.7. Previously this error number was used by
405 * #SVN_ERR_WC_NOT_DIRECTORY, which is now an alias for this error. */
406 SVN_ERRDEF(SVN_ERR_WC_NOT_WORKING_COPY,
407 SVN_ERR_WC_CATEGORY_START + 7,
408 "Path is not a working copy directory")
410 /** @deprecated Provided for backward compatibility with the 1.6 API.
411 * Use #SVN_ERR_WC_NOT_WORKING_COPY. */
412 SVN_ERRDEF(SVN_ERR_WC_NOT_DIRECTORY,
413 SVN_ERR_WC_NOT_WORKING_COPY,
414 "Path is not a working copy directory")
416 SVN_ERRDEF(SVN_ERR_WC_NOT_FILE,
417 SVN_ERR_WC_CATEGORY_START + 8,
418 "Path is not a working copy file")
420 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG,
421 SVN_ERR_WC_CATEGORY_START + 9,
422 "Problem running log")
424 SVN_ERRDEF(SVN_ERR_WC_PATH_NOT_FOUND,
425 SVN_ERR_WC_CATEGORY_START + 10,
426 "Can't find a working copy path")
428 SVN_ERRDEF(SVN_ERR_WC_NOT_UP_TO_DATE,
429 SVN_ERR_WC_CATEGORY_START + 11,
430 "Working copy is not up-to-date")
432 SVN_ERRDEF(SVN_ERR_WC_LEFT_LOCAL_MOD,
433 SVN_ERR_WC_CATEGORY_START + 12,
434 "Left locally modified or unversioned files")
436 SVN_ERRDEF(SVN_ERR_WC_SCHEDULE_CONFLICT,
437 SVN_ERR_WC_CATEGORY_START + 13,
438 "Unmergeable scheduling requested on an entry")
440 SVN_ERRDEF(SVN_ERR_WC_PATH_FOUND,
441 SVN_ERR_WC_CATEGORY_START + 14,
442 "Found a working copy path")
444 SVN_ERRDEF(SVN_ERR_WC_FOUND_CONFLICT,
445 SVN_ERR_WC_CATEGORY_START + 15,
446 "A conflict in the working copy obstructs the current operation")
448 SVN_ERRDEF(SVN_ERR_WC_CORRUPT,
449 SVN_ERR_WC_CATEGORY_START + 16,
450 "Working copy is corrupt")
452 SVN_ERRDEF(SVN_ERR_WC_CORRUPT_TEXT_BASE,
453 SVN_ERR_WC_CATEGORY_START + 17,
454 "Working copy text base is corrupt")
456 SVN_ERRDEF(SVN_ERR_WC_NODE_KIND_CHANGE,
457 SVN_ERR_WC_CATEGORY_START + 18,
458 "Cannot change node kind")
460 SVN_ERRDEF(SVN_ERR_WC_INVALID_OP_ON_CWD,
461 SVN_ERR_WC_CATEGORY_START + 19,
462 "Invalid operation on the current working directory")
464 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG_START,
465 SVN_ERR_WC_CATEGORY_START + 20,
466 "Problem on first log entry in a working copy")
468 SVN_ERRDEF(SVN_ERR_WC_UNSUPPORTED_FORMAT,
469 SVN_ERR_WC_CATEGORY_START + 21,
470 "Unsupported working copy format")
472 SVN_ERRDEF(SVN_ERR_WC_BAD_PATH,
473 SVN_ERR_WC_CATEGORY_START + 22,
474 "Path syntax not supported in this context")
476 /** @since New in 1.2. */
477 SVN_ERRDEF(SVN_ERR_WC_INVALID_SCHEDULE,
478 SVN_ERR_WC_CATEGORY_START + 23,
481 /** @since New in 1.3. */
482 SVN_ERRDEF(SVN_ERR_WC_INVALID_RELOCATION,
483 SVN_ERR_WC_CATEGORY_START + 24,
484 "Invalid relocation")
486 /** @since New in 1.3. */
487 SVN_ERRDEF(SVN_ERR_WC_INVALID_SWITCH,
488 SVN_ERR_WC_CATEGORY_START + 25,
491 /** @since New in 1.5. */
492 SVN_ERRDEF(SVN_ERR_WC_MISMATCHED_CHANGELIST,
493 SVN_ERR_WC_CATEGORY_START + 26,
494 "Changelist doesn't match")
496 /** @since New in 1.5. */
497 SVN_ERRDEF(SVN_ERR_WC_CONFLICT_RESOLVER_FAILURE,
498 SVN_ERR_WC_CATEGORY_START + 27,
499 "Conflict resolution failed")
501 SVN_ERRDEF(SVN_ERR_WC_COPYFROM_PATH_NOT_FOUND,
502 SVN_ERR_WC_CATEGORY_START + 28,
503 "Failed to locate 'copyfrom' path in working copy")
505 /** @since New in 1.5.
506 * @deprecated Provided for backward compatibility with the 1.6 API.
507 * This event is not an error, and is now reported
508 * via the standard notification mechanism instead. */
509 SVN_ERRDEF(SVN_ERR_WC_CHANGELIST_MOVE,
510 SVN_ERR_WC_CATEGORY_START + 29,
511 "Moving a path from one changelist to another")
513 /** @since New in 1.6. */
514 SVN_ERRDEF(SVN_ERR_WC_CANNOT_DELETE_FILE_EXTERNAL,
515 SVN_ERR_WC_CATEGORY_START + 30,
516 "Cannot delete a file external")
518 /** @since New in 1.6. */
519 SVN_ERRDEF(SVN_ERR_WC_CANNOT_MOVE_FILE_EXTERNAL,
520 SVN_ERR_WC_CATEGORY_START + 31,
521 "Cannot move a file external")
523 /** @since New in 1.7. */
524 SVN_ERRDEF(SVN_ERR_WC_DB_ERROR,
525 SVN_ERR_WC_CATEGORY_START + 32,
526 "Something's amiss with the wc sqlite database")
528 /** @since New in 1.7. */
529 SVN_ERRDEF(SVN_ERR_WC_MISSING,
530 SVN_ERR_WC_CATEGORY_START + 33,
531 "The working copy is missing")
533 /** @since New in 1.7. */
534 SVN_ERRDEF(SVN_ERR_WC_NOT_SYMLINK,
535 SVN_ERR_WC_CATEGORY_START + 34,
536 "The specified node is not a symlink")
538 /** @since New in 1.7. */
539 SVN_ERRDEF(SVN_ERR_WC_PATH_UNEXPECTED_STATUS,
540 SVN_ERR_WC_CATEGORY_START + 35,
541 "The specified path has an unexpected status")
543 /** @since New in 1.7. */
544 SVN_ERRDEF(SVN_ERR_WC_UPGRADE_REQUIRED,
545 SVN_ERR_WC_CATEGORY_START + 36,
546 "The working copy needs to be upgraded")
548 /** @since New in 1.7. */
549 SVN_ERRDEF(SVN_ERR_WC_CLEANUP_REQUIRED,
550 SVN_ERR_WC_CATEGORY_START + 37,
551 "Previous operation has not finished; "
552 "run 'cleanup' if it was interrupted")
554 /** @since New in 1.7. */
555 SVN_ERRDEF(SVN_ERR_WC_INVALID_OPERATION_DEPTH,
556 SVN_ERR_WC_CATEGORY_START + 38,
557 "The operation cannot be performed with the specified depth")
559 /** @since New in 1.7. */
560 SVN_ERRDEF(SVN_ERR_WC_PATH_ACCESS_DENIED,
561 SVN_ERR_WC_CATEGORY_START + 39,
562 "Couldn't open a working copy file because access was denied")
564 /** @since New in 1.8. */
565 SVN_ERRDEF(SVN_ERR_WC_MIXED_REVISIONS,
566 SVN_ERR_WC_CATEGORY_START + 40,
567 "Mixed-revision working copy was found but not expected")
569 /** @since New in 1.8 */
570 SVN_ERRDEF(SVN_ERR_WC_DUPLICATE_EXTERNALS_TARGET,
571 SVN_ERR_WC_CATEGORY_START + 41,
572 "Duplicate targets in svn:externals property")
576 SVN_ERRDEF(SVN_ERR_FS_GENERAL,
577 SVN_ERR_FS_CATEGORY_START + 0,
578 "General filesystem error")
580 SVN_ERRDEF(SVN_ERR_FS_CLEANUP,
581 SVN_ERR_FS_CATEGORY_START + 1,
582 "Error closing filesystem")
584 SVN_ERRDEF(SVN_ERR_FS_ALREADY_OPEN,
585 SVN_ERR_FS_CATEGORY_START + 2,
586 "Filesystem is already open")
588 SVN_ERRDEF(SVN_ERR_FS_NOT_OPEN,
589 SVN_ERR_FS_CATEGORY_START + 3,
590 "Filesystem is not open")
592 SVN_ERRDEF(SVN_ERR_FS_CORRUPT,
593 SVN_ERR_FS_CATEGORY_START + 4,
594 "Filesystem is corrupt")
596 SVN_ERRDEF(SVN_ERR_FS_PATH_SYNTAX,
597 SVN_ERR_FS_CATEGORY_START + 5,
598 "Invalid filesystem path syntax")
600 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REVISION,
601 SVN_ERR_FS_CATEGORY_START + 6,
602 "Invalid filesystem revision number")
604 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_TRANSACTION,
605 SVN_ERR_FS_CATEGORY_START + 7,
606 "Invalid filesystem transaction name")
608 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_ENTRY,
609 SVN_ERR_FS_CATEGORY_START + 8,
610 "Filesystem directory has no such entry")
612 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REPRESENTATION,
613 SVN_ERR_FS_CATEGORY_START + 9,
614 "Filesystem has no such representation")
616 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_STRING,
617 SVN_ERR_FS_CATEGORY_START + 10,
618 "Filesystem has no such string")
620 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_COPY,
621 SVN_ERR_FS_CATEGORY_START + 11,
622 "Filesystem has no such copy")
624 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
625 SVN_ERR_FS_CATEGORY_START + 12,
626 "The specified transaction is not mutable")
628 SVN_ERRDEF(SVN_ERR_FS_NOT_FOUND,
629 SVN_ERR_FS_CATEGORY_START + 13,
630 "Filesystem has no item")
632 SVN_ERRDEF(SVN_ERR_FS_ID_NOT_FOUND,
633 SVN_ERR_FS_CATEGORY_START + 14,
634 "Filesystem has no such node-rev-id")
636 SVN_ERRDEF(SVN_ERR_FS_NOT_ID,
637 SVN_ERR_FS_CATEGORY_START + 15,
638 "String does not represent a node or node-rev-id")
640 SVN_ERRDEF(SVN_ERR_FS_NOT_DIRECTORY,
641 SVN_ERR_FS_CATEGORY_START + 16,
642 "Name does not refer to a filesystem directory")
644 SVN_ERRDEF(SVN_ERR_FS_NOT_FILE,
645 SVN_ERR_FS_CATEGORY_START + 17,
646 "Name does not refer to a filesystem file")
648 SVN_ERRDEF(SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
649 SVN_ERR_FS_CATEGORY_START + 18,
650 "Name is not a single path component")
652 SVN_ERRDEF(SVN_ERR_FS_NOT_MUTABLE,
653 SVN_ERR_FS_CATEGORY_START + 19,
654 "Attempt to change immutable filesystem node")
656 SVN_ERRDEF(SVN_ERR_FS_ALREADY_EXISTS,
657 SVN_ERR_FS_CATEGORY_START + 20,
658 "Item already exists in filesystem")
660 SVN_ERRDEF(SVN_ERR_FS_ROOT_DIR,
661 SVN_ERR_FS_CATEGORY_START + 21,
662 "Attempt to remove or recreate fs root dir")
664 SVN_ERRDEF(SVN_ERR_FS_NOT_TXN_ROOT,
665 SVN_ERR_FS_CATEGORY_START + 22,
666 "Object is not a transaction root")
668 SVN_ERRDEF(SVN_ERR_FS_NOT_REVISION_ROOT,
669 SVN_ERR_FS_CATEGORY_START + 23,
670 "Object is not a revision root")
672 SVN_ERRDEF(SVN_ERR_FS_CONFLICT,
673 SVN_ERR_FS_CATEGORY_START + 24,
674 "Merge conflict during commit")
676 SVN_ERRDEF(SVN_ERR_FS_REP_CHANGED,
677 SVN_ERR_FS_CATEGORY_START + 25,
678 "A representation vanished or changed between reads")
680 SVN_ERRDEF(SVN_ERR_FS_REP_NOT_MUTABLE,
681 SVN_ERR_FS_CATEGORY_START + 26,
682 "Tried to change an immutable representation")
684 SVN_ERRDEF(SVN_ERR_FS_MALFORMED_SKEL,
685 SVN_ERR_FS_CATEGORY_START + 27,
686 "Malformed skeleton data")
688 SVN_ERRDEF(SVN_ERR_FS_TXN_OUT_OF_DATE,
689 SVN_ERR_FS_CATEGORY_START + 28,
690 "Transaction is out of date")
692 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB,
693 SVN_ERR_FS_CATEGORY_START + 29,
696 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
697 SVN_ERR_FS_CATEGORY_START + 30,
698 "Berkeley DB deadlock error")
700 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_DEAD,
701 SVN_ERR_FS_CATEGORY_START + 31,
702 "Transaction is dead")
704 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_DEAD,
705 SVN_ERR_FS_CATEGORY_START + 32,
706 "Transaction is not dead")
708 /** @since New in 1.1. */
709 SVN_ERRDEF(SVN_ERR_FS_UNKNOWN_FS_TYPE,
710 SVN_ERR_FS_CATEGORY_START + 33,
713 /** @since New in 1.2. */
714 SVN_ERRDEF(SVN_ERR_FS_NO_USER,
715 SVN_ERR_FS_CATEGORY_START + 34,
716 "No user associated with filesystem")
718 /** @since New in 1.2. */
719 SVN_ERRDEF(SVN_ERR_FS_PATH_ALREADY_LOCKED,
720 SVN_ERR_FS_CATEGORY_START + 35,
721 "Path is already locked")
723 /** @since New in 1.2. */
724 SVN_ERRDEF(SVN_ERR_FS_PATH_NOT_LOCKED,
725 SVN_ERR_FS_CATEGORY_START + 36,
726 "Path is not locked")
728 /** @since New in 1.2. */
729 SVN_ERRDEF(SVN_ERR_FS_BAD_LOCK_TOKEN,
730 SVN_ERR_FS_CATEGORY_START + 37,
731 "Lock token is incorrect")
733 /** @since New in 1.2. */
734 SVN_ERRDEF(SVN_ERR_FS_NO_LOCK_TOKEN,
735 SVN_ERR_FS_CATEGORY_START + 38,
736 "No lock token provided")
738 /** @since New in 1.2. */
739 SVN_ERRDEF(SVN_ERR_FS_LOCK_OWNER_MISMATCH,
740 SVN_ERR_FS_CATEGORY_START + 39,
741 "Username does not match lock owner")
743 /** @since New in 1.2. */
744 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_LOCK,
745 SVN_ERR_FS_CATEGORY_START + 40,
746 "Filesystem has no such lock")
748 /** @since New in 1.2. */
749 SVN_ERRDEF(SVN_ERR_FS_LOCK_EXPIRED,
750 SVN_ERR_FS_CATEGORY_START + 41,
753 /** @since New in 1.2. */
754 SVN_ERRDEF(SVN_ERR_FS_OUT_OF_DATE,
755 SVN_ERR_FS_CATEGORY_START + 42,
756 "Item is out of date")
758 /**@since New in 1.2.
760 * This is analogous to SVN_ERR_REPOS_UNSUPPORTED_VERSION. To avoid
761 * confusion with "versions" (i.e., releases) of Subversion, we've
762 * started calling this the "format" number instead. The old
763 * SVN_ERR_REPOS_UNSUPPORTED_VERSION error predates this and so
766 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_FORMAT,
767 SVN_ERR_FS_CATEGORY_START + 43,
768 "Unsupported FS format")
770 /** @since New in 1.5. */
771 SVN_ERRDEF(SVN_ERR_FS_REP_BEING_WRITTEN,
772 SVN_ERR_FS_CATEGORY_START + 44,
773 "Representation is being written")
775 /** @since New in 1.5. */
776 SVN_ERRDEF(SVN_ERR_FS_TXN_NAME_TOO_LONG,
777 SVN_ERR_FS_CATEGORY_START + 45,
778 "The generated transaction name is too long")
780 /** @since New in 1.5. */
781 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_NODE_ORIGIN,
782 SVN_ERR_FS_CATEGORY_START + 46,
783 "Filesystem has no such node origin record")
785 /** @since New in 1.5. */
786 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_UPGRADE,
787 SVN_ERR_FS_CATEGORY_START + 47,
788 "Filesystem upgrade is not supported")
790 /** @since New in 1.6. */
791 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_CHECKSUM_REP,
792 SVN_ERR_FS_CATEGORY_START + 48,
793 "Filesystem has no such checksum-representation index record")
795 /** @since New in 1.7. */
796 SVN_ERRDEF(SVN_ERR_FS_PROP_BASEVALUE_MISMATCH,
797 SVN_ERR_FS_CATEGORY_START + 49,
798 "Property value in filesystem differs from the provided "
801 /** @since New in 1.8. */
802 SVN_ERRDEF(SVN_ERR_FS_INCORRECT_EDITOR_COMPLETION,
803 SVN_ERR_FS_CATEGORY_START + 50,
804 "The filesystem editor completion process was not followed")
806 /** @since New in 1.8. */
807 SVN_ERRDEF(SVN_ERR_FS_PACKED_REVPROP_READ_FAILURE,
808 SVN_ERR_FS_CATEGORY_START + 51,
809 "A packed revprop could not be read")
811 /** @since New in 1.8. */
812 SVN_ERRDEF(SVN_ERR_FS_REVPROP_CACHE_INIT_FAILURE,
813 SVN_ERR_FS_CATEGORY_START + 52,
814 "Could not initialize the revprop caching infrastructure.")
816 /** @since New in 1.9. */
817 SVN_ERRDEF(SVN_ERR_FS_MALFORMED_TXN_ID,
818 SVN_ERR_FS_CATEGORY_START + 53,
819 "Malformed transaction ID string.")
821 /** @since New in 1.9. */
822 SVN_ERRDEF(SVN_ERR_FS_INDEX_CORRUPTION,
823 SVN_ERR_FS_CATEGORY_START + 54,
824 "Corrupt index file.")
826 /** @since New in 1.9. */
827 SVN_ERRDEF(SVN_ERR_FS_INDEX_REVISION,
828 SVN_ERR_FS_CATEGORY_START + 55,
829 "Revision not covered by index.")
831 /** @since New in 1.9. */
832 SVN_ERRDEF(SVN_ERR_FS_INDEX_OVERFLOW,
833 SVN_ERR_FS_CATEGORY_START + 56,
834 "Item index too large for this revision.")
836 /** @since New in 1.9. */
837 SVN_ERRDEF(SVN_ERR_FS_CONTAINER_INDEX,
838 SVN_ERR_FS_CATEGORY_START + 57,
839 "Container index out of range.")
841 /** @since New in 1.9. */
842 SVN_ERRDEF(SVN_ERR_FS_INDEX_INCONSISTENT,
843 SVN_ERR_FS_CATEGORY_START + 58,
844 "Index files are inconsistent.")
846 /** @since New in 1.9. */
847 SVN_ERRDEF(SVN_ERR_FS_LOCK_OPERATION_FAILED,
848 SVN_ERR_FS_CATEGORY_START + 59,
849 "Lock operation failed")
851 /** @since New in 1.9. */
852 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_TYPE,
853 SVN_ERR_FS_CATEGORY_START + 60,
854 "Unsupported FS type")
856 /** @since New in 1.9. */
857 SVN_ERRDEF(SVN_ERR_FS_CONTAINER_SIZE,
858 SVN_ERR_FS_CATEGORY_START + 61,
859 "Container capacity exceeded.")
861 /** @since New in 1.9. */
862 SVN_ERRDEF(SVN_ERR_FS_MALFORMED_NODEREV_ID,
863 SVN_ERR_FS_CATEGORY_START + 62,
864 "Malformed node revision ID string.")
866 /** @since New in 1.9. */
867 SVN_ERRDEF(SVN_ERR_FS_INVALID_GENERATION,
868 SVN_ERR_FS_CATEGORY_START + 63,
869 "Invalid generation number data.")
873 SVN_ERRDEF(SVN_ERR_REPOS_LOCKED,
874 SVN_ERR_REPOS_CATEGORY_START + 0,
875 "The repository is locked, perhaps for db recovery")
877 SVN_ERRDEF(SVN_ERR_REPOS_HOOK_FAILURE,
878 SVN_ERR_REPOS_CATEGORY_START + 1,
879 "A repository hook failed")
881 SVN_ERRDEF(SVN_ERR_REPOS_BAD_ARGS,
882 SVN_ERR_REPOS_CATEGORY_START + 2,
883 "Incorrect arguments supplied")
885 SVN_ERRDEF(SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
886 SVN_ERR_REPOS_CATEGORY_START + 3,
887 "A report cannot be generated because no data was supplied")
889 SVN_ERRDEF(SVN_ERR_REPOS_BAD_REVISION_REPORT,
890 SVN_ERR_REPOS_CATEGORY_START + 4,
891 "Bogus revision report")
893 /* This is analogous to SVN_ERR_FS_UNSUPPORTED_FORMAT. To avoid
894 * confusion with "versions" (i.e., releases) of Subversion, we
895 * started using the word "format" instead of "version". However,
896 * this error code's name predates that decision.
898 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_VERSION,
899 SVN_ERR_REPOS_CATEGORY_START + 5,
900 "Unsupported repository version")
902 SVN_ERRDEF(SVN_ERR_REPOS_DISABLED_FEATURE,
903 SVN_ERR_REPOS_CATEGORY_START + 6,
904 "Disabled repository feature")
906 SVN_ERRDEF(SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
907 SVN_ERR_REPOS_CATEGORY_START + 7,
908 "Error running post-commit hook")
910 /** @since New in 1.2. */
911 SVN_ERRDEF(SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED,
912 SVN_ERR_REPOS_CATEGORY_START + 8,
913 "Error running post-lock hook")
915 /** @since New in 1.2. */
916 SVN_ERRDEF(SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED,
917 SVN_ERR_REPOS_CATEGORY_START + 9,
918 "Error running post-unlock hook")
920 /** @since New in 1.5. */
921 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_UPGRADE,
922 SVN_ERR_REPOS_CATEGORY_START + 10,
923 "Repository upgrade is not supported")
925 /* generic RA errors */
927 SVN_ERRDEF(SVN_ERR_RA_ILLEGAL_URL,
928 SVN_ERR_RA_CATEGORY_START + 0,
929 "Bad URL passed to RA layer")
931 SVN_ERRDEF(SVN_ERR_RA_NOT_AUTHORIZED,
932 SVN_ERR_RA_CATEGORY_START + 1,
933 "Authorization failed")
935 SVN_ERRDEF(SVN_ERR_RA_UNKNOWN_AUTH,
936 SVN_ERR_RA_CATEGORY_START + 2,
937 "Unknown authorization method")
939 SVN_ERRDEF(SVN_ERR_RA_NOT_IMPLEMENTED,
940 SVN_ERR_RA_CATEGORY_START + 3,
941 "Repository access method not implemented")
943 SVN_ERRDEF(SVN_ERR_RA_OUT_OF_DATE,
944 SVN_ERR_RA_CATEGORY_START + 4,
945 "Item is out of date")
947 SVN_ERRDEF(SVN_ERR_RA_NO_REPOS_UUID,
948 SVN_ERR_RA_CATEGORY_START + 5,
949 "Repository has no UUID")
951 SVN_ERRDEF(SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
952 SVN_ERR_RA_CATEGORY_START + 6,
953 "Unsupported RA plugin ABI version")
955 /** @since New in 1.2. */
956 SVN_ERRDEF(SVN_ERR_RA_NOT_LOCKED,
957 SVN_ERR_RA_CATEGORY_START + 7,
958 "Path is not locked")
960 /** @since New in 1.5. */
961 SVN_ERRDEF(SVN_ERR_RA_PARTIAL_REPLAY_NOT_SUPPORTED,
962 SVN_ERR_RA_CATEGORY_START + 8,
963 "Server can only replay from the root of a repository")
965 /** @since New in 1.5. */
966 SVN_ERRDEF(SVN_ERR_RA_UUID_MISMATCH,
967 SVN_ERR_RA_CATEGORY_START + 9,
968 "Repository UUID does not match expected UUID")
970 /** @since New in 1.6. */
971 SVN_ERRDEF(SVN_ERR_RA_REPOS_ROOT_URL_MISMATCH,
972 SVN_ERR_RA_CATEGORY_START + 10,
973 "Repository root URL does not match expected root URL")
975 /** @since New in 1.7. */
976 SVN_ERRDEF(SVN_ERR_RA_SESSION_URL_MISMATCH,
977 SVN_ERR_RA_CATEGORY_START + 11,
978 "Session URL does not match expected session URL")
980 /** @since New in 1.8. */
981 SVN_ERRDEF(SVN_ERR_RA_CANNOT_CREATE_TUNNEL,
982 SVN_ERR_RA_CATEGORY_START + 12,
983 "Can't create tunnel")
985 /** @since New in 1.9. */
986 SVN_ERRDEF(SVN_ERR_RA_CANNOT_CREATE_SESSION,
987 SVN_ERR_RA_CATEGORY_START + 13,
988 "Can't create session")
992 SVN_ERRDEF(SVN_ERR_RA_DAV_SOCK_INIT,
993 SVN_ERR_RA_DAV_CATEGORY_START + 0,
994 "RA layer failed to init socket layer")
996 SVN_ERRDEF(SVN_ERR_RA_DAV_CREATING_REQUEST,
997 SVN_ERR_RA_DAV_CATEGORY_START + 1,
998 "RA layer failed to create HTTP request")
1000 SVN_ERRDEF(SVN_ERR_RA_DAV_REQUEST_FAILED,
1001 SVN_ERR_RA_DAV_CATEGORY_START + 2,
1002 "RA layer request failed")
1004 SVN_ERRDEF(SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
1005 SVN_ERR_RA_DAV_CATEGORY_START + 3,
1006 "RA layer didn't receive requested OPTIONS info")
1008 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
1009 SVN_ERR_RA_DAV_CATEGORY_START + 4,
1010 "RA layer failed to fetch properties")
1012 SVN_ERRDEF(SVN_ERR_RA_DAV_ALREADY_EXISTS,
1013 SVN_ERR_RA_DAV_CATEGORY_START + 5,
1014 "RA layer file already exists")
1016 /** @deprecated To improve consistency between ra layers, this error code
1017 is replaced by SVN_ERR_BAD_CONFIG_VALUE.
1018 Slated for removal in the next major release. */
1019 SVN_ERRDEF(SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
1020 SVN_ERR_RA_DAV_CATEGORY_START + 6,
1021 "Invalid configuration value")
1023 /** @deprecated To improve consistency between ra layers, this error code
1024 is replaced in ra_serf by SVN_ERR_FS_NOT_FOUND.
1025 Slated for removal in the next major release. */
1026 SVN_ERRDEF(SVN_ERR_RA_DAV_PATH_NOT_FOUND,
1027 SVN_ERR_RA_DAV_CATEGORY_START + 7,
1028 "HTTP Path Not Found")
1030 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPPATCH_FAILED,
1031 SVN_ERR_RA_DAV_CATEGORY_START + 8,
1032 "Failed to execute WebDAV PROPPATCH")
1034 /** @since New in 1.2. */
1035 SVN_ERRDEF(SVN_ERR_RA_DAV_MALFORMED_DATA,
1036 SVN_ERR_RA_DAV_CATEGORY_START + 9,
1037 "Malformed network data")
1039 /** @since New in 1.3 */
1040 SVN_ERRDEF(SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS,
1041 SVN_ERR_RA_DAV_CATEGORY_START + 10,
1042 "Unable to extract data from response header")
1044 /** @since New in 1.5 */
1045 SVN_ERRDEF(SVN_ERR_RA_DAV_RELOCATED,
1046 SVN_ERR_RA_DAV_CATEGORY_START + 11,
1047 "Repository has been moved")
1049 /** @since New in 1.7 */
1050 SVN_ERRDEF(SVN_ERR_RA_DAV_CONN_TIMEOUT,
1051 SVN_ERR_RA_DAV_CATEGORY_START + 12,
1052 "Connection timed out")
1054 /** @since New in 1.6 */
1055 SVN_ERRDEF(SVN_ERR_RA_DAV_FORBIDDEN,
1056 SVN_ERR_RA_DAV_CATEGORY_START + 13,
1057 "URL access forbidden for unknown reason")
1059 /** @since New in 1.9 */
1060 SVN_ERRDEF(SVN_ERR_RA_DAV_PRECONDITION_FAILED,
1061 SVN_ERR_RA_DAV_CATEGORY_START + 14,
1062 "The server state conflicts with the requested preconditions")
1064 /** @since New in 1.9 */
1065 SVN_ERRDEF(SVN_ERR_RA_DAV_METHOD_NOT_ALLOWED,
1066 SVN_ERR_RA_DAV_CATEGORY_START + 15,
1067 "The URL doesn't allow the requested method")
1069 /* ra_local errors */
1071 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
1072 SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
1073 "Couldn't find a repository")
1075 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
1076 SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
1077 "Couldn't open a repository")
1079 /* svndiff errors */
1081 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_HEADER,
1082 SVN_ERR_SVNDIFF_CATEGORY_START + 0,
1083 "Svndiff data has invalid header")
1085 SVN_ERRDEF(SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
1086 SVN_ERR_SVNDIFF_CATEGORY_START + 1,
1087 "Svndiff data contains corrupt window")
1089 SVN_ERRDEF(SVN_ERR_SVNDIFF_BACKWARD_VIEW,
1090 SVN_ERR_SVNDIFF_CATEGORY_START + 2,
1091 "Svndiff data contains backward-sliding source view")
1093 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_OPS,
1094 SVN_ERR_SVNDIFF_CATEGORY_START + 3,
1095 "Svndiff data contains invalid instruction")
1097 SVN_ERRDEF(SVN_ERR_SVNDIFF_UNEXPECTED_END,
1098 SVN_ERR_SVNDIFF_CATEGORY_START + 4,
1099 "Svndiff data ends unexpectedly")
1101 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA,
1102 SVN_ERR_SVNDIFF_CATEGORY_START + 5,
1103 "Svndiff compressed data is invalid")
1105 /* mod_dav_svn errors */
1107 SVN_ERRDEF(SVN_ERR_APMOD_MISSING_PATH_TO_FS,
1108 SVN_ERR_APMOD_CATEGORY_START + 0,
1109 "Apache has no path to an SVN filesystem")
1111 SVN_ERRDEF(SVN_ERR_APMOD_MALFORMED_URI,
1112 SVN_ERR_APMOD_CATEGORY_START + 1,
1113 "Apache got a malformed URI")
1115 SVN_ERRDEF(SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
1116 SVN_ERR_APMOD_CATEGORY_START + 2,
1117 "Activity not found")
1119 SVN_ERRDEF(SVN_ERR_APMOD_BAD_BASELINE,
1120 SVN_ERR_APMOD_CATEGORY_START + 3,
1121 "Baseline incorrect")
1123 SVN_ERRDEF(SVN_ERR_APMOD_CONNECTION_ABORTED,
1124 SVN_ERR_APMOD_CATEGORY_START + 4,
1125 "Input/output error")
1127 /* libsvn_client errors */
1129 SVN_ERRDEF(SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
1130 SVN_ERR_CLIENT_CATEGORY_START + 0,
1131 "A path under version control is needed for this operation")
1133 SVN_ERRDEF(SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
1134 SVN_ERR_CLIENT_CATEGORY_START + 1,
1135 "Repository access is needed for this operation")
1137 SVN_ERRDEF(SVN_ERR_CLIENT_BAD_REVISION,
1138 SVN_ERR_CLIENT_CATEGORY_START + 2,
1139 "Bogus revision information given")
1141 SVN_ERRDEF(SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
1142 SVN_ERR_CLIENT_CATEGORY_START + 3,
1143 "Attempting to commit to a URL more than once")
1145 SVN_ERRDEF(SVN_ERR_CLIENT_IS_BINARY_FILE,
1146 SVN_ERR_CLIENT_CATEGORY_START + 4,
1147 "Operation does not apply to binary file")
1149 /*### SVN_PROP_EXTERNALS needed to be replaced with "svn:externals"
1150 in order to get gettext translatable strings */
1151 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
1152 SVN_ERR_CLIENT_CATEGORY_START + 5,
1153 "Format of an svn:externals property was invalid")
1155 SVN_ERRDEF(SVN_ERR_CLIENT_MODIFIED,
1156 SVN_ERR_CLIENT_CATEGORY_START + 6,
1157 "Attempting restricted operation for modified resource")
1159 SVN_ERRDEF(SVN_ERR_CLIENT_IS_DIRECTORY,
1160 SVN_ERR_CLIENT_CATEGORY_START + 7,
1161 "Operation does not apply to directory")
1163 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_RANGE,
1164 SVN_ERR_CLIENT_CATEGORY_START + 8,
1165 "Revision range is not allowed")
1167 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_RELOCATION,
1168 SVN_ERR_CLIENT_CATEGORY_START + 9,
1169 "Inter-repository relocation not allowed")
1171 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
1172 SVN_ERR_CLIENT_CATEGORY_START + 10,
1173 "Author name cannot contain a newline")
1175 SVN_ERRDEF(SVN_ERR_CLIENT_PROPERTY_NAME,
1176 SVN_ERR_CLIENT_CATEGORY_START + 11,
1177 "Bad property name")
1179 /** @since New in 1.1. */
1180 SVN_ERRDEF(SVN_ERR_CLIENT_UNRELATED_RESOURCES,
1181 SVN_ERR_CLIENT_CATEGORY_START + 12,
1182 "Two versioned resources are unrelated")
1184 /** @since New in 1.2. */
1185 SVN_ERRDEF(SVN_ERR_CLIENT_MISSING_LOCK_TOKEN,
1186 SVN_ERR_CLIENT_CATEGORY_START + 13,
1187 "Path has no lock token")
1189 /** @since New in 1.5. */
1190 SVN_ERRDEF(SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED,
1191 SVN_ERR_CLIENT_CATEGORY_START + 14,
1192 "Operation does not support multiple sources")
1194 /** @since New in 1.5. */
1195 SVN_ERRDEF(SVN_ERR_CLIENT_NO_VERSIONED_PARENT,
1196 SVN_ERR_CLIENT_CATEGORY_START + 15,
1197 "No versioned parent directories")
1199 /** @since New in 1.5. */
1200 SVN_ERRDEF(SVN_ERR_CLIENT_NOT_READY_TO_MERGE,
1201 SVN_ERR_CLIENT_CATEGORY_START + 16,
1202 "Working copy and merge source not ready for reintegration")
1204 /** @since New in 1.6. */
1205 SVN_ERRDEF(SVN_ERR_CLIENT_FILE_EXTERNAL_OVERWRITE_VERSIONED,
1206 SVN_ERR_CLIENT_CATEGORY_START + 17,
1207 "A file external cannot overwrite an existing versioned item")
1209 /** @since New in 1.7. */
1210 SVN_ERRDEF(SVN_ERR_CLIENT_PATCH_BAD_STRIP_COUNT,
1211 SVN_ERR_CLIENT_CATEGORY_START + 18,
1212 "Invalid path component strip count specified")
1214 /** @since New in 1.7. */
1215 SVN_ERRDEF(SVN_ERR_CLIENT_CYCLE_DETECTED,
1216 SVN_ERR_CLIENT_CATEGORY_START + 19,
1217 "Detected a cycle while processing the operation")
1219 /** @since New in 1.7. */
1220 SVN_ERRDEF(SVN_ERR_CLIENT_MERGE_UPDATE_REQUIRED,
1221 SVN_ERR_CLIENT_CATEGORY_START + 20,
1222 "Working copy and merge source not ready for reintegration")
1224 /** @since New in 1.7. */
1225 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_MERGEINFO_NO_MERGETRACKING,
1226 SVN_ERR_CLIENT_CATEGORY_START + 21,
1227 "Invalid mergeinfo detected in merge target")
1229 /** @since New in 1.7. */
1230 SVN_ERRDEF(SVN_ERR_CLIENT_NO_LOCK_TOKEN,
1231 SVN_ERR_CLIENT_CATEGORY_START + 22,
1232 "Can't perform this operation without a valid lock token")
1234 /** @since New in 1.7. */
1235 SVN_ERRDEF(SVN_ERR_CLIENT_FORBIDDEN_BY_SERVER,
1236 SVN_ERR_CLIENT_CATEGORY_START + 23,
1237 "The operation is forbidden by the server")
1241 SVN_ERRDEF(SVN_ERR_BASE,
1242 SVN_ERR_MISC_CATEGORY_START + 0,
1243 "A problem occurred; see other errors for details")
1245 SVN_ERRDEF(SVN_ERR_PLUGIN_LOAD_FAILURE,
1246 SVN_ERR_MISC_CATEGORY_START + 1,
1247 "Failure loading plugin")
1249 SVN_ERRDEF(SVN_ERR_MALFORMED_FILE,
1250 SVN_ERR_MISC_CATEGORY_START + 2,
1253 SVN_ERRDEF(SVN_ERR_INCOMPLETE_DATA,
1254 SVN_ERR_MISC_CATEGORY_START + 3,
1257 SVN_ERRDEF(SVN_ERR_INCORRECT_PARAMS,
1258 SVN_ERR_MISC_CATEGORY_START + 4,
1259 "Incorrect parameters given")
1261 SVN_ERRDEF(SVN_ERR_UNVERSIONED_RESOURCE,
1262 SVN_ERR_MISC_CATEGORY_START + 5,
1263 "Tried a versioning operation on an unversioned resource")
1265 SVN_ERRDEF(SVN_ERR_TEST_FAILED,
1266 SVN_ERR_MISC_CATEGORY_START + 6,
1269 SVN_ERRDEF(SVN_ERR_UNSUPPORTED_FEATURE,
1270 SVN_ERR_MISC_CATEGORY_START + 7,
1271 "Trying to use an unsupported feature")
1273 SVN_ERRDEF(SVN_ERR_BAD_PROP_KIND,
1274 SVN_ERR_MISC_CATEGORY_START + 8,
1275 "Unexpected or unknown property kind")
1277 SVN_ERRDEF(SVN_ERR_ILLEGAL_TARGET,
1278 SVN_ERR_MISC_CATEGORY_START + 9,
1279 "Illegal target for the requested operation")
1281 SVN_ERRDEF(SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
1282 SVN_ERR_MISC_CATEGORY_START + 10,
1283 "MD5 checksum is missing")
1285 SVN_ERRDEF(SVN_ERR_DIR_NOT_EMPTY,
1286 SVN_ERR_MISC_CATEGORY_START + 11,
1287 "Directory needs to be empty but is not")
1289 SVN_ERRDEF(SVN_ERR_EXTERNAL_PROGRAM,
1290 SVN_ERR_MISC_CATEGORY_START + 12,
1291 "Error calling external program")
1293 SVN_ERRDEF(SVN_ERR_SWIG_PY_EXCEPTION_SET,
1294 SVN_ERR_MISC_CATEGORY_START + 13,
1295 "Python exception has been set with the error")
1297 SVN_ERRDEF(SVN_ERR_CHECKSUM_MISMATCH,
1298 SVN_ERR_MISC_CATEGORY_START + 14,
1299 "A checksum mismatch occurred")
1301 SVN_ERRDEF(SVN_ERR_CANCELLED,
1302 SVN_ERR_MISC_CATEGORY_START + 15,
1303 "The operation was interrupted")
1305 SVN_ERRDEF(SVN_ERR_INVALID_DIFF_OPTION,
1306 SVN_ERR_MISC_CATEGORY_START + 16,
1307 "The specified diff option is not supported")
1309 SVN_ERRDEF(SVN_ERR_PROPERTY_NOT_FOUND,
1310 SVN_ERR_MISC_CATEGORY_START + 17,
1311 "Property not found")
1313 SVN_ERRDEF(SVN_ERR_NO_AUTH_FILE_PATH,
1314 SVN_ERR_MISC_CATEGORY_START + 18,
1315 "No auth file path available")
1317 /** @since New in 1.1. */
1318 SVN_ERRDEF(SVN_ERR_VERSION_MISMATCH,
1319 SVN_ERR_MISC_CATEGORY_START + 19,
1320 "Incompatible library version")
1322 /** @since New in 1.5. */
1323 SVN_ERRDEF(SVN_ERR_MERGEINFO_PARSE_ERROR,
1324 SVN_ERR_MISC_CATEGORY_START + 20,
1325 "Mergeinfo parse error")
1327 /** @since New in 1.5. */
1328 SVN_ERRDEF(SVN_ERR_CEASE_INVOCATION,
1329 SVN_ERR_MISC_CATEGORY_START + 21,
1330 "Cease invocation of this API")
1332 /** @since New in 1.5. */
1333 SVN_ERRDEF(SVN_ERR_REVNUM_PARSE_FAILURE,
1334 SVN_ERR_MISC_CATEGORY_START + 22,
1335 "Error parsing revision number")
1337 /** @since New in 1.5. */
1338 SVN_ERRDEF(SVN_ERR_ITER_BREAK,
1339 SVN_ERR_MISC_CATEGORY_START + 23,
1340 "Iteration terminated before completion")
1342 /** @since New in 1.5. */
1343 SVN_ERRDEF(SVN_ERR_UNKNOWN_CHANGELIST,
1344 SVN_ERR_MISC_CATEGORY_START + 24,
1345 "Unknown changelist")
1347 /** @since New in 1.5. */
1348 SVN_ERRDEF(SVN_ERR_RESERVED_FILENAME_SPECIFIED,
1349 SVN_ERR_MISC_CATEGORY_START + 25,
1350 "Reserved directory name in command line arguments")
1352 /** @since New in 1.5. */
1353 SVN_ERRDEF(SVN_ERR_UNKNOWN_CAPABILITY,
1354 SVN_ERR_MISC_CATEGORY_START + 26,
1355 "Inquiry about unknown capability")
1357 /** @since New in 1.6. */
1358 SVN_ERRDEF(SVN_ERR_TEST_SKIPPED,
1359 SVN_ERR_MISC_CATEGORY_START + 27,
1362 /** @since New in 1.6. */
1363 SVN_ERRDEF(SVN_ERR_NO_APR_MEMCACHE,
1364 SVN_ERR_MISC_CATEGORY_START + 28,
1365 "APR memcache library not available")
1367 /** @since New in 1.6. */
1368 SVN_ERRDEF(SVN_ERR_ATOMIC_INIT_FAILURE,
1369 SVN_ERR_MISC_CATEGORY_START + 29,
1370 "Couldn't perform atomic initialization")
1372 /** @since New in 1.6. */
1373 SVN_ERRDEF(SVN_ERR_SQLITE_ERROR,
1374 SVN_ERR_MISC_CATEGORY_START + 30,
1377 /** @since New in 1.6. */
1378 SVN_ERRDEF(SVN_ERR_SQLITE_READONLY,
1379 SVN_ERR_MISC_CATEGORY_START + 31,
1380 "Attempted to write to readonly SQLite db")
1382 /** @since New in 1.6.
1383 * @deprecated the internal sqlite support code does not manage schemas
1385 SVN_ERRDEF(SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA,
1386 SVN_ERR_MISC_CATEGORY_START + 32,
1387 "Unsupported schema found in SQLite db")
1389 /** @since New in 1.7. */
1390 SVN_ERRDEF(SVN_ERR_SQLITE_BUSY,
1391 SVN_ERR_MISC_CATEGORY_START + 33,
1392 "The SQLite db is busy")
1394 /** @since New in 1.7. */
1395 SVN_ERRDEF(SVN_ERR_SQLITE_RESETTING_FOR_ROLLBACK,
1396 SVN_ERR_MISC_CATEGORY_START + 34,
1397 "SQLite busy at transaction rollback; "
1398 "resetting all busy SQLite statements to allow rollback")
1400 /** @since New in 1.7. */
1401 SVN_ERRDEF(SVN_ERR_SQLITE_CONSTRAINT,
1402 SVN_ERR_MISC_CATEGORY_START + 35,
1403 "Constraint error in SQLite db")
1405 /** @since New in 1.8. */
1406 SVN_ERRDEF(SVN_ERR_TOO_MANY_MEMCACHED_SERVERS,
1407 SVN_ERR_MISC_CATEGORY_START + 36,
1408 "Too many memcached servers configured")
1410 /** @since New in 1.8. */
1411 SVN_ERRDEF(SVN_ERR_MALFORMED_VERSION_STRING,
1412 SVN_ERR_MISC_CATEGORY_START + 37,
1413 "Failed to parse version number string")
1415 /** @since New in 1.8. */
1416 SVN_ERRDEF(SVN_ERR_CORRUPTED_ATOMIC_STORAGE,
1417 SVN_ERR_MISC_CATEGORY_START + 38,
1418 "Atomic data storage is corrupt")
1420 /** @since New in 1.8. */
1421 SVN_ERRDEF(SVN_ERR_UTF8PROC_ERROR,
1422 SVN_ERR_MISC_CATEGORY_START + 39,
1423 "utf8proc library error")
1425 /** @since New in 1.8. */
1426 SVN_ERRDEF(SVN_ERR_UTF8_GLOB,
1427 SVN_ERR_MISC_CATEGORY_START + 40,
1428 "Bad arguments to SQL operators GLOB or LIKE")
1430 /** @since New in 1.9. */
1431 SVN_ERRDEF(SVN_ERR_CORRUPT_PACKED_DATA,
1432 SVN_ERR_MISC_CATEGORY_START + 41,
1433 "Packed data stream is corrupt")
1435 /** @since New in 1.9. */
1436 SVN_ERRDEF(SVN_ERR_COMPOSED_ERROR,
1437 SVN_ERR_MISC_CATEGORY_START + 42,
1438 "Additional errors:")
1440 /** @since New in 1.9. */
1441 SVN_ERRDEF(SVN_ERR_INVALID_INPUT,
1442 SVN_ERR_MISC_CATEGORY_START + 43,
1443 "Parser error: invalid input")
1445 /* command-line client errors */
1447 SVN_ERRDEF(SVN_ERR_CL_ARG_PARSING_ERROR,
1448 SVN_ERR_CL_CATEGORY_START + 0,
1449 "Error parsing arguments")
1451 SVN_ERRDEF(SVN_ERR_CL_INSUFFICIENT_ARGS,
1452 SVN_ERR_CL_CATEGORY_START + 1,
1453 "Not enough arguments provided")
1455 SVN_ERRDEF(SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
1456 SVN_ERR_CL_CATEGORY_START + 2,
1457 "Mutually exclusive arguments specified")
1459 SVN_ERRDEF(SVN_ERR_CL_ADM_DIR_RESERVED,
1460 SVN_ERR_CL_CATEGORY_START + 3,
1461 "Attempted command in administrative dir")
1463 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
1464 SVN_ERR_CL_CATEGORY_START + 4,
1465 "The log message file is under version control")
1467 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
1468 SVN_ERR_CL_CATEGORY_START + 5,
1469 "The log message is a pathname")
1471 SVN_ERRDEF(SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
1472 SVN_ERR_CL_CATEGORY_START + 6,
1473 "Committing in directory scheduled for addition")
1475 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_EDITOR,
1476 SVN_ERR_CL_CATEGORY_START + 7,
1477 "No external editor available")
1479 SVN_ERRDEF(SVN_ERR_CL_BAD_LOG_MESSAGE,
1480 SVN_ERR_CL_CATEGORY_START + 8,
1481 "Something is wrong with the log message's contents")
1483 SVN_ERRDEF(SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE,
1484 SVN_ERR_CL_CATEGORY_START + 9,
1485 "A log message was given where none was necessary")
1487 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_MERGE_TOOL,
1488 SVN_ERR_CL_CATEGORY_START + 10,
1489 "No external merge tool available")
1491 SVN_ERRDEF(SVN_ERR_CL_ERROR_PROCESSING_EXTERNALS,
1492 SVN_ERR_CL_CATEGORY_START + 11,
1493 "Failed processing one or more externals definitions")
1495 /** @since New in 1.9. */
1496 SVN_ERRDEF(SVN_ERR_CL_REPOS_VERIFY_FAILED,
1497 SVN_ERR_CL_CATEGORY_START + 12,
1498 "Repository verification failed")
1502 SVN_ERRDEF(SVN_ERR_RA_SVN_CMD_ERR,
1503 SVN_ERR_RA_SVN_CATEGORY_START + 0,
1504 "Special code for wrapping server errors to report to client")
1506 SVN_ERRDEF(SVN_ERR_RA_SVN_UNKNOWN_CMD,
1507 SVN_ERR_RA_SVN_CATEGORY_START + 1,
1508 "Unknown svn protocol command")
1510 SVN_ERRDEF(SVN_ERR_RA_SVN_CONNECTION_CLOSED,
1511 SVN_ERR_RA_SVN_CATEGORY_START + 2,
1512 "Network connection closed unexpectedly")
1514 SVN_ERRDEF(SVN_ERR_RA_SVN_IO_ERROR,
1515 SVN_ERR_RA_SVN_CATEGORY_START + 3,
1516 "Network read/write error")
1518 SVN_ERRDEF(SVN_ERR_RA_SVN_MALFORMED_DATA,
1519 SVN_ERR_RA_SVN_CATEGORY_START + 4,
1520 "Malformed network data")
1522 SVN_ERRDEF(SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
1523 SVN_ERR_RA_SVN_CATEGORY_START + 5,
1524 "Couldn't find a repository")
1526 SVN_ERRDEF(SVN_ERR_RA_SVN_BAD_VERSION,
1527 SVN_ERR_RA_SVN_CATEGORY_START + 6,
1528 "Client/server version mismatch")
1530 /** @since New in 1.5. */
1531 SVN_ERRDEF(SVN_ERR_RA_SVN_NO_MECHANISMS,
1532 SVN_ERR_RA_SVN_CATEGORY_START + 7,
1533 "Cannot negotiate authentication mechanism")
1535 /** @since New in 1.7 */
1536 SVN_ERRDEF(SVN_ERR_RA_SVN_EDIT_ABORTED,
1537 SVN_ERR_RA_SVN_CATEGORY_START + 8,
1538 "Editor drive was aborted")
1540 /* libsvn_auth errors */
1542 /* this error can be used when an auth provider doesn't have
1543 the creds, but no other "real" error occurred. */
1544 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
1545 SVN_ERR_AUTHN_CATEGORY_START + 0,
1546 "Credential data unavailable")
1548 SVN_ERRDEF(SVN_ERR_AUTHN_NO_PROVIDER,
1549 SVN_ERR_AUTHN_CATEGORY_START + 1,
1550 "No authentication provider available")
1552 SVN_ERRDEF(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
1553 SVN_ERR_AUTHN_CATEGORY_START + 2,
1554 "All authentication providers exhausted")
1556 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_NOT_SAVED,
1557 SVN_ERR_AUTHN_CATEGORY_START + 3,
1558 "Credentials not saved")
1560 /** @since New in 1.5. */
1561 SVN_ERRDEF(SVN_ERR_AUTHN_FAILED,
1562 SVN_ERR_AUTHN_CATEGORY_START + 4,
1563 "Authentication failed")
1565 /* authorization errors */
1567 SVN_ERRDEF(SVN_ERR_AUTHZ_ROOT_UNREADABLE,
1568 SVN_ERR_AUTHZ_CATEGORY_START + 0,
1569 "Read access denied for root of edit")
1571 /** @since New in 1.1. */
1572 SVN_ERRDEF(SVN_ERR_AUTHZ_UNREADABLE,
1573 SVN_ERR_AUTHZ_CATEGORY_START + 1,
1574 "Item is not readable")
1576 /** @since New in 1.1. */
1577 SVN_ERRDEF(SVN_ERR_AUTHZ_PARTIALLY_READABLE,
1578 SVN_ERR_AUTHZ_CATEGORY_START + 2,
1579 "Item is partially readable")
1581 SVN_ERRDEF(SVN_ERR_AUTHZ_INVALID_CONFIG,
1582 SVN_ERR_AUTHZ_CATEGORY_START + 3,
1583 "Invalid authz configuration")
1585 /** @since New in 1.3 */
1586 SVN_ERRDEF(SVN_ERR_AUTHZ_UNWRITABLE,
1587 SVN_ERR_AUTHZ_CATEGORY_START + 4,
1588 "Item is not writable")
1591 /* libsvn_diff errors */
1593 SVN_ERRDEF(SVN_ERR_DIFF_DATASOURCE_MODIFIED,
1594 SVN_ERR_DIFF_CATEGORY_START + 0,
1595 "Diff data source modified unexpectedly")
1597 /* libsvn_ra_serf errors */
1598 /** @since New in 1.5.
1599 @deprecated SSPI now handled by serf rather than libsvn_ra_serf. */
1600 SVN_ERRDEF(SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED,
1601 SVN_ERR_RA_SERF_CATEGORY_START + 0,
1602 "Initialization of SSPI library failed")
1603 /** @since New in 1.5.
1604 @deprecated Certificate verification now handled by serf rather
1605 than libsvn_ra_serf. */
1606 SVN_ERRDEF(SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED,
1607 SVN_ERR_RA_SERF_CATEGORY_START + 1,
1608 "Server SSL certificate untrusted")
1609 /** @since New in 1.7.
1610 @deprecated GSSAPI now handled by serf rather than libsvn_ra_serf. */
1611 SVN_ERRDEF(SVN_ERR_RA_SERF_GSSAPI_INITIALISATION_FAILED,
1612 SVN_ERR_RA_SERF_CATEGORY_START + 2,
1613 "Initialization of the GSSAPI context failed")
1615 /** @since New in 1.7. */
1616 SVN_ERRDEF(SVN_ERR_RA_SERF_WRAPPED_ERROR,
1617 SVN_ERR_RA_SERF_CATEGORY_START + 3,
1618 "While handling serf response:")
1620 /* malfunctions such as assertion failures */
1622 SVN_ERRDEF(SVN_ERR_ASSERTION_FAIL,
1623 SVN_ERR_MALFUNC_CATEGORY_START + 0,
1624 "Assertion failure")
1626 SVN_ERRDEF(SVN_ERR_ASSERTION_ONLY_TRACING_LINKS,
1627 SVN_ERR_MALFUNC_CATEGORY_START + 1,
1628 "No non-tracing links found in the error chain")
1630 /* X509 parser errors.
1631 * Names of these error codes are based on tropicssl error codes.
1632 * @since New in 1.9 */
1634 SVN_ERRDEF(SVN_ERR_ASN1_OUT_OF_DATA,
1635 SVN_ERR_X509_CATEGORY_START + 0,
1636 "Unexpected end of ASN1 data")
1638 SVN_ERRDEF(SVN_ERR_ASN1_UNEXPECTED_TAG,
1639 SVN_ERR_X509_CATEGORY_START + 1,
1640 "Unexpected ASN1 tag")
1642 SVN_ERRDEF(SVN_ERR_ASN1_INVALID_LENGTH,
1643 SVN_ERR_X509_CATEGORY_START + 2,
1644 "Invalid ASN1 length")
1646 SVN_ERRDEF(SVN_ERR_ASN1_LENGTH_MISMATCH,
1647 SVN_ERR_X509_CATEGORY_START + 3,
1648 "ASN1 length mismatch")
1650 SVN_ERRDEF(SVN_ERR_ASN1_INVALID_DATA,
1651 SVN_ERR_X509_CATEGORY_START + 4,
1652 "Invalid ASN1 data")
1654 SVN_ERRDEF(SVN_ERR_X509_FEATURE_UNAVAILABLE,
1655 SVN_ERR_X509_CATEGORY_START + 5,
1656 "Unavailable X509 feature")
1658 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_PEM,
1659 SVN_ERR_X509_CATEGORY_START + 6,
1660 "Invalid PEM certificate")
1662 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_FORMAT,
1663 SVN_ERR_X509_CATEGORY_START + 7,
1664 "Invalid certificate format")
1666 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_VERSION,
1667 SVN_ERR_X509_CATEGORY_START + 8,
1668 "Invalid certificate version")
1670 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_SERIAL,
1671 SVN_ERR_X509_CATEGORY_START + 9,
1672 "Invalid certificate serial number")
1674 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_ALG,
1675 SVN_ERR_X509_CATEGORY_START + 10,
1676 "Found invalid algorithm in certificate")
1678 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_NAME,
1679 SVN_ERR_X509_CATEGORY_START + 11,
1680 "Found invalid name in certificate")
1682 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_DATE,
1683 SVN_ERR_X509_CATEGORY_START + 12,
1684 "Found invalid date in certificate")
1686 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_PUBKEY,
1687 SVN_ERR_X509_CATEGORY_START + 13,
1688 "Found invalid public key in certificate")
1690 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_SIGNATURE,
1691 SVN_ERR_X509_CATEGORY_START + 14,
1692 "Found invalid signature in certificate")
1694 SVN_ERRDEF(SVN_ERR_X509_CERT_INVALID_EXTENSIONS,
1695 SVN_ERR_X509_CATEGORY_START + 15,
1696 "Found invalid extensions in certificate")
1698 SVN_ERRDEF(SVN_ERR_X509_CERT_UNKNOWN_VERSION,
1699 SVN_ERR_X509_CATEGORY_START + 16,
1700 "Unknown certificate version")
1702 SVN_ERRDEF(SVN_ERR_X509_CERT_UNKNOWN_PK_ALG,
1703 SVN_ERR_X509_CATEGORY_START + 17,
1704 "Certificate uses unknown public key algorithm")
1706 SVN_ERRDEF(SVN_ERR_X509_CERT_SIG_MISMATCH,
1707 SVN_ERR_X509_CATEGORY_START + 18,
1708 "Certificate signature mismatch")
1710 SVN_ERRDEF(SVN_ERR_X509_CERT_VERIFY_FAILED,
1711 SVN_ERR_X509_CATEGORY_START + 19,
1712 "Certficate verification failed")
1717 #undef SVN_ERROR_START
1719 #undef SVN_ERROR_END
1723 #endif /* __cplusplus */
1725 #endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */