TortoiseGitMerge: Updated libsvn stuff
[TortoiseGit.git] / src / TortoiseMerge / svninclude / svn_error_codes.h
blob6bba0d81899e19c7e06e2f049b9dce76f87db80f
1 /**
2 * @copyright
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
19 * under the License.
20 * ====================================================================
21 * @endcopyright
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
51 a public API. */
54 #include <apr_errno.h> /* APR's error system */
56 #ifdef __cplusplus
57 extern "C" {
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
80 #endif
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
84 apr_errno.h).
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
100 perturbed.
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))
154 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
156 /** Collection of Subversion error code values, located within the
157 * APR user error space. */
158 SVN_ERROR_START
160 /* validation ("BAD_FOO") errors */
162 SVN_ERRDEF(SVN_ERR_BAD_CONTAINING_POOL,
163 SVN_ERR_BAD_CATEGORY_START + 0,
164 "Bad parent pool passed to svn_make_pool()")
166 SVN_ERRDEF(SVN_ERR_BAD_FILENAME,
167 SVN_ERR_BAD_CATEGORY_START + 1,
168 "Bogus filename")
170 SVN_ERRDEF(SVN_ERR_BAD_URL,
171 SVN_ERR_BAD_CATEGORY_START + 2,
172 "Bogus URL")
174 SVN_ERRDEF(SVN_ERR_BAD_DATE,
175 SVN_ERR_BAD_CATEGORY_START + 3,
176 "Bogus date")
178 SVN_ERRDEF(SVN_ERR_BAD_MIME_TYPE,
179 SVN_ERR_BAD_CATEGORY_START + 4,
180 "Bogus mime-type")
182 /** @since New in 1.5.
184 * Note that there was an unused slot sitting here at
185 * SVN_ERR_BAD_CATEGORY_START + 5, so error codes after this aren't
186 * necessarily "New in 1.5" just because they come later.
188 SVN_ERRDEF(SVN_ERR_BAD_PROPERTY_VALUE,
189 SVN_ERR_BAD_CATEGORY_START + 5,
190 "Wrong or unexpected property value")
192 SVN_ERRDEF(SVN_ERR_BAD_VERSION_FILE_FORMAT,
193 SVN_ERR_BAD_CATEGORY_START + 6,
194 "Version file format not correct")
196 SVN_ERRDEF(SVN_ERR_BAD_RELATIVE_PATH,
197 SVN_ERR_BAD_CATEGORY_START + 7,
198 "Path is not an immediate child of the specified directory")
200 SVN_ERRDEF(SVN_ERR_BAD_UUID,
201 SVN_ERR_BAD_CATEGORY_START + 8,
202 "Bogus UUID")
204 /** @since New in 1.6. */
205 SVN_ERRDEF(SVN_ERR_BAD_CONFIG_VALUE,
206 SVN_ERR_BAD_CATEGORY_START + 9,
207 "Invalid configuration value")
209 SVN_ERRDEF(SVN_ERR_BAD_SERVER_SPECIFICATION,
210 SVN_ERR_BAD_CATEGORY_START + 10,
211 "Bogus server specification")
213 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_KIND,
214 SVN_ERR_BAD_CATEGORY_START + 11,
215 "Unsupported checksum type")
217 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_PARSE,
218 SVN_ERR_BAD_CATEGORY_START + 12,
219 "Invalid character in hex checksum")
221 /** @since New in 1.7. */
222 SVN_ERRDEF(SVN_ERR_BAD_TOKEN,
223 SVN_ERR_BAD_CATEGORY_START + 13,
224 "Unknown string value of token")
226 /** @since New in 1.7. */
227 SVN_ERRDEF(SVN_ERR_BAD_CHANGELIST_NAME,
228 SVN_ERR_BAD_CATEGORY_START + 14,
229 "Invalid changelist name")
231 /** @since New in 1.8. */
232 SVN_ERRDEF(SVN_ERR_BAD_ATOMIC,
233 SVN_ERR_BAD_CATEGORY_START + 15,
234 "Invalid atomic")
236 /* xml errors */
238 SVN_ERRDEF(SVN_ERR_XML_ATTRIB_NOT_FOUND,
239 SVN_ERR_XML_CATEGORY_START + 0,
240 "No such XML tag attribute")
242 SVN_ERRDEF(SVN_ERR_XML_MISSING_ANCESTRY,
243 SVN_ERR_XML_CATEGORY_START + 1,
244 "<delta-pkg> is missing ancestry")
246 SVN_ERRDEF(SVN_ERR_XML_UNKNOWN_ENCODING,
247 SVN_ERR_XML_CATEGORY_START + 2,
248 "Unrecognized binary data encoding; can't decode")
250 SVN_ERRDEF(SVN_ERR_XML_MALFORMED,
251 SVN_ERR_XML_CATEGORY_START + 3,
252 "XML data was not well-formed")
254 SVN_ERRDEF(SVN_ERR_XML_UNESCAPABLE_DATA,
255 SVN_ERR_XML_CATEGORY_START + 4,
256 "Data cannot be safely XML-escaped")
258 /* io errors */
260 SVN_ERRDEF(SVN_ERR_IO_INCONSISTENT_EOL,
261 SVN_ERR_IO_CATEGORY_START + 0,
262 "Inconsistent line ending style")
264 SVN_ERRDEF(SVN_ERR_IO_UNKNOWN_EOL,
265 SVN_ERR_IO_CATEGORY_START + 1,
266 "Unrecognized line ending style")
268 /** @deprecated Unused, slated for removal in the next major release. */
269 SVN_ERRDEF(SVN_ERR_IO_CORRUPT_EOL,
270 SVN_ERR_IO_CATEGORY_START + 2,
271 "Line endings other than expected")
273 SVN_ERRDEF(SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
274 SVN_ERR_IO_CATEGORY_START + 3,
275 "Ran out of unique names")
277 /** @deprecated Unused, slated for removal in the next major release. */
278 SVN_ERRDEF(SVN_ERR_IO_PIPE_FRAME_ERROR,
279 SVN_ERR_IO_CATEGORY_START + 4,
280 "Framing error in pipe protocol")
282 /** @deprecated Unused, slated for removal in the next major release. */
283 SVN_ERRDEF(SVN_ERR_IO_PIPE_READ_ERROR,
284 SVN_ERR_IO_CATEGORY_START + 5,
285 "Read error in pipe")
287 SVN_ERRDEF(SVN_ERR_IO_WRITE_ERROR,
288 SVN_ERR_IO_CATEGORY_START + 6,
289 "Write error")
291 /** @since New in 1.7. */
292 SVN_ERRDEF(SVN_ERR_IO_PIPE_WRITE_ERROR,
293 SVN_ERR_IO_CATEGORY_START + 7,
294 "Write error in pipe")
296 /* stream errors */
298 SVN_ERRDEF(SVN_ERR_STREAM_UNEXPECTED_EOF,
299 SVN_ERR_STREAM_CATEGORY_START + 0,
300 "Unexpected EOF on stream")
302 SVN_ERRDEF(SVN_ERR_STREAM_MALFORMED_DATA,
303 SVN_ERR_STREAM_CATEGORY_START + 1,
304 "Malformed stream data")
306 SVN_ERRDEF(SVN_ERR_STREAM_UNRECOGNIZED_DATA,
307 SVN_ERR_STREAM_CATEGORY_START + 2,
308 "Unrecognized stream data")
310 /** @since New in 1.7. */
311 SVN_ERRDEF(SVN_ERR_STREAM_SEEK_NOT_SUPPORTED,
312 SVN_ERR_STREAM_CATEGORY_START + 3,
313 "Stream doesn't support seeking")
315 /* node errors */
317 SVN_ERRDEF(SVN_ERR_NODE_UNKNOWN_KIND,
318 SVN_ERR_NODE_CATEGORY_START + 0,
319 "Unknown svn_node_kind")
321 SVN_ERRDEF(SVN_ERR_NODE_UNEXPECTED_KIND,
322 SVN_ERR_NODE_CATEGORY_START + 1,
323 "Unexpected node kind found")
325 /* entry errors */
327 SVN_ERRDEF(SVN_ERR_ENTRY_NOT_FOUND,
328 SVN_ERR_ENTRY_CATEGORY_START + 0,
329 "Can't find an entry")
331 /* UNUSED error slot: + 1 */
333 SVN_ERRDEF(SVN_ERR_ENTRY_EXISTS,
334 SVN_ERR_ENTRY_CATEGORY_START + 2,
335 "Entry already exists")
337 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_REVISION,
338 SVN_ERR_ENTRY_CATEGORY_START + 3,
339 "Entry has no revision")
341 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_URL,
342 SVN_ERR_ENTRY_CATEGORY_START + 4,
343 "Entry has no URL")
345 SVN_ERRDEF(SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
346 SVN_ERR_ENTRY_CATEGORY_START + 5,
347 "Entry has an invalid attribute")
349 SVN_ERRDEF(SVN_ERR_ENTRY_FORBIDDEN,
350 SVN_ERR_ENTRY_CATEGORY_START + 6,
351 "Can't create an entry for a forbidden name")
353 /* wc errors */
355 SVN_ERRDEF(SVN_ERR_WC_OBSTRUCTED_UPDATE,
356 SVN_ERR_WC_CATEGORY_START + 0,
357 "Obstructed update")
359 /** @deprecated Unused, slated for removal in the next major release. */
360 SVN_ERRDEF(SVN_ERR_WC_UNWIND_MISMATCH,
361 SVN_ERR_WC_CATEGORY_START + 1,
362 "Mismatch popping the WC unwind stack")
364 /** @deprecated Unused, slated for removal in the next major release. */
365 SVN_ERRDEF(SVN_ERR_WC_UNWIND_EMPTY,
366 SVN_ERR_WC_CATEGORY_START + 2,
367 "Attempt to pop empty WC unwind stack")
369 /** @deprecated Unused, slated for removal in the next major release. */
370 SVN_ERRDEF(SVN_ERR_WC_UNWIND_NOT_EMPTY,
371 SVN_ERR_WC_CATEGORY_START + 3,
372 "Attempt to unlock with non-empty unwind stack")
374 SVN_ERRDEF(SVN_ERR_WC_LOCKED,
375 SVN_ERR_WC_CATEGORY_START + 4,
376 "Attempted to lock an already-locked dir")
378 SVN_ERRDEF(SVN_ERR_WC_NOT_LOCKED,
379 SVN_ERR_WC_CATEGORY_START + 5,
380 "Working copy not locked; this is probably a bug, please report")
382 /** @deprecated Unused, slated for removal in the next major release. */
383 SVN_ERRDEF(SVN_ERR_WC_INVALID_LOCK,
384 SVN_ERR_WC_CATEGORY_START + 6,
385 "Invalid lock")
387 /** @since New in 1.7. Previously this error number was used by
388 * #SVN_ERR_WC_NOT_DIRECTORY, which is now an alias for this error. */
389 SVN_ERRDEF(SVN_ERR_WC_NOT_WORKING_COPY,
390 SVN_ERR_WC_CATEGORY_START + 7,
391 "Path is not a working copy directory")
393 /** @deprecated Provided for backward compatibility with the 1.6 API.
394 * Use #SVN_ERR_WC_NOT_WORKING_COPY. */
395 SVN_ERRDEF(SVN_ERR_WC_NOT_DIRECTORY,
396 SVN_ERR_WC_NOT_WORKING_COPY,
397 "Path is not a working copy directory")
399 SVN_ERRDEF(SVN_ERR_WC_NOT_FILE,
400 SVN_ERR_WC_CATEGORY_START + 8,
401 "Path is not a working copy file")
403 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG,
404 SVN_ERR_WC_CATEGORY_START + 9,
405 "Problem running log")
407 SVN_ERRDEF(SVN_ERR_WC_PATH_NOT_FOUND,
408 SVN_ERR_WC_CATEGORY_START + 10,
409 "Can't find a working copy path")
411 SVN_ERRDEF(SVN_ERR_WC_NOT_UP_TO_DATE,
412 SVN_ERR_WC_CATEGORY_START + 11,
413 "Working copy is not up-to-date")
415 SVN_ERRDEF(SVN_ERR_WC_LEFT_LOCAL_MOD,
416 SVN_ERR_WC_CATEGORY_START + 12,
417 "Left locally modified or unversioned files")
419 SVN_ERRDEF(SVN_ERR_WC_SCHEDULE_CONFLICT,
420 SVN_ERR_WC_CATEGORY_START + 13,
421 "Unmergeable scheduling requested on an entry")
423 SVN_ERRDEF(SVN_ERR_WC_PATH_FOUND,
424 SVN_ERR_WC_CATEGORY_START + 14,
425 "Found a working copy path")
427 SVN_ERRDEF(SVN_ERR_WC_FOUND_CONFLICT,
428 SVN_ERR_WC_CATEGORY_START + 15,
429 "A conflict in the working copy obstructs the current operation")
431 SVN_ERRDEF(SVN_ERR_WC_CORRUPT,
432 SVN_ERR_WC_CATEGORY_START + 16,
433 "Working copy is corrupt")
435 SVN_ERRDEF(SVN_ERR_WC_CORRUPT_TEXT_BASE,
436 SVN_ERR_WC_CATEGORY_START + 17,
437 "Working copy text base is corrupt")
439 SVN_ERRDEF(SVN_ERR_WC_NODE_KIND_CHANGE,
440 SVN_ERR_WC_CATEGORY_START + 18,
441 "Cannot change node kind")
443 SVN_ERRDEF(SVN_ERR_WC_INVALID_OP_ON_CWD,
444 SVN_ERR_WC_CATEGORY_START + 19,
445 "Invalid operation on the current working directory")
447 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG_START,
448 SVN_ERR_WC_CATEGORY_START + 20,
449 "Problem on first log entry in a working copy")
451 SVN_ERRDEF(SVN_ERR_WC_UNSUPPORTED_FORMAT,
452 SVN_ERR_WC_CATEGORY_START + 21,
453 "Unsupported working copy format")
455 SVN_ERRDEF(SVN_ERR_WC_BAD_PATH,
456 SVN_ERR_WC_CATEGORY_START + 22,
457 "Path syntax not supported in this context")
459 /** @since New in 1.2. */
460 SVN_ERRDEF(SVN_ERR_WC_INVALID_SCHEDULE,
461 SVN_ERR_WC_CATEGORY_START + 23,
462 "Invalid schedule")
464 /** @since New in 1.3. */
465 SVN_ERRDEF(SVN_ERR_WC_INVALID_RELOCATION,
466 SVN_ERR_WC_CATEGORY_START + 24,
467 "Invalid relocation")
469 /** @since New in 1.3. */
470 SVN_ERRDEF(SVN_ERR_WC_INVALID_SWITCH,
471 SVN_ERR_WC_CATEGORY_START + 25,
472 "Invalid switch")
474 /** @since New in 1.5. */
475 SVN_ERRDEF(SVN_ERR_WC_MISMATCHED_CHANGELIST,
476 SVN_ERR_WC_CATEGORY_START + 26,
477 "Changelist doesn't match")
479 /** @since New in 1.5. */
480 SVN_ERRDEF(SVN_ERR_WC_CONFLICT_RESOLVER_FAILURE,
481 SVN_ERR_WC_CATEGORY_START + 27,
482 "Conflict resolution failed")
484 SVN_ERRDEF(SVN_ERR_WC_COPYFROM_PATH_NOT_FOUND,
485 SVN_ERR_WC_CATEGORY_START + 28,
486 "Failed to locate 'copyfrom' path in working copy")
488 /** @since New in 1.5.
489 * @deprecated Provided for backward compatibility with the 1.6 API.
490 * This event is not an error, and is now reported
491 * via the standard notification mechanism instead. */
492 SVN_ERRDEF(SVN_ERR_WC_CHANGELIST_MOVE,
493 SVN_ERR_WC_CATEGORY_START + 29,
494 "Moving a path from one changelist to another")
496 /** @since New in 1.6. */
497 SVN_ERRDEF(SVN_ERR_WC_CANNOT_DELETE_FILE_EXTERNAL,
498 SVN_ERR_WC_CATEGORY_START + 30,
499 "Cannot delete a file external")
501 /** @since New in 1.6. */
502 SVN_ERRDEF(SVN_ERR_WC_CANNOT_MOVE_FILE_EXTERNAL,
503 SVN_ERR_WC_CATEGORY_START + 31,
504 "Cannot move a file external")
506 /** @since New in 1.7. */
507 SVN_ERRDEF(SVN_ERR_WC_DB_ERROR,
508 SVN_ERR_WC_CATEGORY_START + 32,
509 "Something's amiss with the wc sqlite database")
511 /** @since New in 1.7. */
512 SVN_ERRDEF(SVN_ERR_WC_MISSING,
513 SVN_ERR_WC_CATEGORY_START + 33,
514 "The working copy is missing")
516 /** @since New in 1.7. */
517 SVN_ERRDEF(SVN_ERR_WC_NOT_SYMLINK,
518 SVN_ERR_WC_CATEGORY_START + 34,
519 "The specified node is not a symlink")
521 /** @since New in 1.7. */
522 SVN_ERRDEF(SVN_ERR_WC_PATH_UNEXPECTED_STATUS,
523 SVN_ERR_WC_CATEGORY_START + 35,
524 "The specified path has an unexpected status")
526 /** @since New in 1.7. */
527 SVN_ERRDEF(SVN_ERR_WC_UPGRADE_REQUIRED,
528 SVN_ERR_WC_CATEGORY_START + 36,
529 "The working copy needs to be upgraded")
531 /** @since New in 1.7. */
532 SVN_ERRDEF(SVN_ERR_WC_CLEANUP_REQUIRED,
533 SVN_ERR_WC_CATEGORY_START + 37,
534 "Previous operation has not finished; "
535 "run 'cleanup' if it was interrupted")
537 /** @since New in 1.7. */
538 SVN_ERRDEF(SVN_ERR_WC_INVALID_OPERATION_DEPTH,
539 SVN_ERR_WC_CATEGORY_START + 38,
540 "The operation cannot be performed with the specified depth")
542 /** @since New in 1.7. */
543 SVN_ERRDEF(SVN_ERR_WC_PATH_ACCESS_DENIED,
544 SVN_ERR_WC_CATEGORY_START + 39,
545 "Couldn't open a working copy file because access was denied")
547 /** @since New in 1.8. */
548 SVN_ERRDEF(SVN_ERR_WC_MIXED_REVISIONS,
549 SVN_ERR_WC_CATEGORY_START + 40,
550 "Mixed-revision working copy was found but not expected")
552 /** @since New in 1.8 */
553 SVN_ERRDEF(SVN_ERR_WC_DUPLICATE_EXTERNALS_TARGET,
554 SVN_ERR_WC_CATEGORY_START + 41,
555 "Duplicate targets in svn:externals property")
557 /* fs errors */
559 SVN_ERRDEF(SVN_ERR_FS_GENERAL,
560 SVN_ERR_FS_CATEGORY_START + 0,
561 "General filesystem error")
563 SVN_ERRDEF(SVN_ERR_FS_CLEANUP,
564 SVN_ERR_FS_CATEGORY_START + 1,
565 "Error closing filesystem")
567 SVN_ERRDEF(SVN_ERR_FS_ALREADY_OPEN,
568 SVN_ERR_FS_CATEGORY_START + 2,
569 "Filesystem is already open")
571 SVN_ERRDEF(SVN_ERR_FS_NOT_OPEN,
572 SVN_ERR_FS_CATEGORY_START + 3,
573 "Filesystem is not open")
575 SVN_ERRDEF(SVN_ERR_FS_CORRUPT,
576 SVN_ERR_FS_CATEGORY_START + 4,
577 "Filesystem is corrupt")
579 SVN_ERRDEF(SVN_ERR_FS_PATH_SYNTAX,
580 SVN_ERR_FS_CATEGORY_START + 5,
581 "Invalid filesystem path syntax")
583 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REVISION,
584 SVN_ERR_FS_CATEGORY_START + 6,
585 "Invalid filesystem revision number")
587 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_TRANSACTION,
588 SVN_ERR_FS_CATEGORY_START + 7,
589 "Invalid filesystem transaction name")
591 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_ENTRY,
592 SVN_ERR_FS_CATEGORY_START + 8,
593 "Filesystem directory has no such entry")
595 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REPRESENTATION,
596 SVN_ERR_FS_CATEGORY_START + 9,
597 "Filesystem has no such representation")
599 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_STRING,
600 SVN_ERR_FS_CATEGORY_START + 10,
601 "Filesystem has no such string")
603 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_COPY,
604 SVN_ERR_FS_CATEGORY_START + 11,
605 "Filesystem has no such copy")
607 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
608 SVN_ERR_FS_CATEGORY_START + 12,
609 "The specified transaction is not mutable")
611 SVN_ERRDEF(SVN_ERR_FS_NOT_FOUND,
612 SVN_ERR_FS_CATEGORY_START + 13,
613 "Filesystem has no item")
615 SVN_ERRDEF(SVN_ERR_FS_ID_NOT_FOUND,
616 SVN_ERR_FS_CATEGORY_START + 14,
617 "Filesystem has no such node-rev-id")
619 SVN_ERRDEF(SVN_ERR_FS_NOT_ID,
620 SVN_ERR_FS_CATEGORY_START + 15,
621 "String does not represent a node or node-rev-id")
623 SVN_ERRDEF(SVN_ERR_FS_NOT_DIRECTORY,
624 SVN_ERR_FS_CATEGORY_START + 16,
625 "Name does not refer to a filesystem directory")
627 SVN_ERRDEF(SVN_ERR_FS_NOT_FILE,
628 SVN_ERR_FS_CATEGORY_START + 17,
629 "Name does not refer to a filesystem file")
631 SVN_ERRDEF(SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
632 SVN_ERR_FS_CATEGORY_START + 18,
633 "Name is not a single path component")
635 SVN_ERRDEF(SVN_ERR_FS_NOT_MUTABLE,
636 SVN_ERR_FS_CATEGORY_START + 19,
637 "Attempt to change immutable filesystem node")
639 SVN_ERRDEF(SVN_ERR_FS_ALREADY_EXISTS,
640 SVN_ERR_FS_CATEGORY_START + 20,
641 "Item already exists in filesystem")
643 SVN_ERRDEF(SVN_ERR_FS_ROOT_DIR,
644 SVN_ERR_FS_CATEGORY_START + 21,
645 "Attempt to remove or recreate fs root dir")
647 SVN_ERRDEF(SVN_ERR_FS_NOT_TXN_ROOT,
648 SVN_ERR_FS_CATEGORY_START + 22,
649 "Object is not a transaction root")
651 SVN_ERRDEF(SVN_ERR_FS_NOT_REVISION_ROOT,
652 SVN_ERR_FS_CATEGORY_START + 23,
653 "Object is not a revision root")
655 SVN_ERRDEF(SVN_ERR_FS_CONFLICT,
656 SVN_ERR_FS_CATEGORY_START + 24,
657 "Merge conflict during commit")
659 SVN_ERRDEF(SVN_ERR_FS_REP_CHANGED,
660 SVN_ERR_FS_CATEGORY_START + 25,
661 "A representation vanished or changed between reads")
663 SVN_ERRDEF(SVN_ERR_FS_REP_NOT_MUTABLE,
664 SVN_ERR_FS_CATEGORY_START + 26,
665 "Tried to change an immutable representation")
667 SVN_ERRDEF(SVN_ERR_FS_MALFORMED_SKEL,
668 SVN_ERR_FS_CATEGORY_START + 27,
669 "Malformed skeleton data")
671 SVN_ERRDEF(SVN_ERR_FS_TXN_OUT_OF_DATE,
672 SVN_ERR_FS_CATEGORY_START + 28,
673 "Transaction is out of date")
675 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB,
676 SVN_ERR_FS_CATEGORY_START + 29,
677 "Berkeley DB error")
679 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
680 SVN_ERR_FS_CATEGORY_START + 30,
681 "Berkeley DB deadlock error")
683 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_DEAD,
684 SVN_ERR_FS_CATEGORY_START + 31,
685 "Transaction is dead")
687 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_DEAD,
688 SVN_ERR_FS_CATEGORY_START + 32,
689 "Transaction is not dead")
691 /** @since New in 1.1. */
692 SVN_ERRDEF(SVN_ERR_FS_UNKNOWN_FS_TYPE,
693 SVN_ERR_FS_CATEGORY_START + 33,
694 "Unknown FS type")
696 /** @since New in 1.2. */
697 SVN_ERRDEF(SVN_ERR_FS_NO_USER,
698 SVN_ERR_FS_CATEGORY_START + 34,
699 "No user associated with filesystem")
701 /** @since New in 1.2. */
702 SVN_ERRDEF(SVN_ERR_FS_PATH_ALREADY_LOCKED,
703 SVN_ERR_FS_CATEGORY_START + 35,
704 "Path is already locked")
706 /** @since New in 1.2. */
707 SVN_ERRDEF(SVN_ERR_FS_PATH_NOT_LOCKED,
708 SVN_ERR_FS_CATEGORY_START + 36,
709 "Path is not locked")
711 /** @since New in 1.2. */
712 SVN_ERRDEF(SVN_ERR_FS_BAD_LOCK_TOKEN,
713 SVN_ERR_FS_CATEGORY_START + 37,
714 "Lock token is incorrect")
716 /** @since New in 1.2. */
717 SVN_ERRDEF(SVN_ERR_FS_NO_LOCK_TOKEN,
718 SVN_ERR_FS_CATEGORY_START + 38,
719 "No lock token provided")
721 /** @since New in 1.2. */
722 SVN_ERRDEF(SVN_ERR_FS_LOCK_OWNER_MISMATCH,
723 SVN_ERR_FS_CATEGORY_START + 39,
724 "Username does not match lock owner")
726 /** @since New in 1.2. */
727 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_LOCK,
728 SVN_ERR_FS_CATEGORY_START + 40,
729 "Filesystem has no such lock")
731 /** @since New in 1.2. */
732 SVN_ERRDEF(SVN_ERR_FS_LOCK_EXPIRED,
733 SVN_ERR_FS_CATEGORY_START + 41,
734 "Lock has expired")
736 /** @since New in 1.2. */
737 SVN_ERRDEF(SVN_ERR_FS_OUT_OF_DATE,
738 SVN_ERR_FS_CATEGORY_START + 42,
739 "Item is out of date")
741 /**@since New in 1.2.
743 * This is analogous to SVN_ERR_REPOS_UNSUPPORTED_VERSION. To avoid
744 * confusion with "versions" (i.e., releases) of Subversion, we've
745 * started calling this the "format" number instead. The old
746 * SVN_ERR_REPOS_UNSUPPORTED_VERSION error predates this and so
747 * retains its name.
749 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_FORMAT,
750 SVN_ERR_FS_CATEGORY_START + 43,
751 "Unsupported FS format")
753 /** @since New in 1.5. */
754 SVN_ERRDEF(SVN_ERR_FS_REP_BEING_WRITTEN,
755 SVN_ERR_FS_CATEGORY_START + 44,
756 "Representation is being written")
758 /** @since New in 1.5. */
759 SVN_ERRDEF(SVN_ERR_FS_TXN_NAME_TOO_LONG,
760 SVN_ERR_FS_CATEGORY_START + 45,
761 "The generated transaction name is too long")
763 /** @since New in 1.5. */
764 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_NODE_ORIGIN,
765 SVN_ERR_FS_CATEGORY_START + 46,
766 "Filesystem has no such node origin record")
768 /** @since New in 1.5. */
769 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_UPGRADE,
770 SVN_ERR_FS_CATEGORY_START + 47,
771 "Filesystem upgrade is not supported")
773 /** @since New in 1.6. */
774 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_CHECKSUM_REP,
775 SVN_ERR_FS_CATEGORY_START + 48,
776 "Filesystem has no such checksum-representation index record")
778 /** @since New in 1.7. */
779 SVN_ERRDEF(SVN_ERR_FS_PROP_BASEVALUE_MISMATCH,
780 SVN_ERR_FS_CATEGORY_START + 49,
781 "Property value in filesystem differs from the provided "
782 "base value")
784 /** @since New in 1.8. */
785 SVN_ERRDEF(SVN_ERR_FS_INCORRECT_EDITOR_COMPLETION,
786 SVN_ERR_FS_CATEGORY_START + 50,
787 "The filesystem editor completion process was not followed")
789 /** @since New in 1.8. */
790 SVN_ERRDEF(SVN_ERR_FS_PACKED_REVPROP_READ_FAILURE,
791 SVN_ERR_FS_CATEGORY_START + 51,
792 "A packed revprop could not be read")
794 /** @since New in 1.8. */
795 SVN_ERRDEF(SVN_ERR_FS_REVPROP_CACHE_INIT_FAILURE,
796 SVN_ERR_FS_CATEGORY_START + 52,
797 "Could not initialize the revprop caching infrastructure.")
799 /* repos errors */
801 SVN_ERRDEF(SVN_ERR_REPOS_LOCKED,
802 SVN_ERR_REPOS_CATEGORY_START + 0,
803 "The repository is locked, perhaps for db recovery")
805 SVN_ERRDEF(SVN_ERR_REPOS_HOOK_FAILURE,
806 SVN_ERR_REPOS_CATEGORY_START + 1,
807 "A repository hook failed")
809 SVN_ERRDEF(SVN_ERR_REPOS_BAD_ARGS,
810 SVN_ERR_REPOS_CATEGORY_START + 2,
811 "Incorrect arguments supplied")
813 SVN_ERRDEF(SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
814 SVN_ERR_REPOS_CATEGORY_START + 3,
815 "A report cannot be generated because no data was supplied")
817 SVN_ERRDEF(SVN_ERR_REPOS_BAD_REVISION_REPORT,
818 SVN_ERR_REPOS_CATEGORY_START + 4,
819 "Bogus revision report")
821 /* This is analogous to SVN_ERR_FS_UNSUPPORTED_FORMAT. To avoid
822 * confusion with "versions" (i.e., releases) of Subversion, we
823 * started using the word "format" instead of "version". However,
824 * this error code's name predates that decision.
826 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_VERSION,
827 SVN_ERR_REPOS_CATEGORY_START + 5,
828 "Unsupported repository version")
830 SVN_ERRDEF(SVN_ERR_REPOS_DISABLED_FEATURE,
831 SVN_ERR_REPOS_CATEGORY_START + 6,
832 "Disabled repository feature")
834 SVN_ERRDEF(SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
835 SVN_ERR_REPOS_CATEGORY_START + 7,
836 "Error running post-commit hook")
838 /** @since New in 1.2. */
839 SVN_ERRDEF(SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED,
840 SVN_ERR_REPOS_CATEGORY_START + 8,
841 "Error running post-lock hook")
843 /** @since New in 1.2. */
844 SVN_ERRDEF(SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED,
845 SVN_ERR_REPOS_CATEGORY_START + 9,
846 "Error running post-unlock hook")
848 /** @since New in 1.5. */
849 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_UPGRADE,
850 SVN_ERR_REPOS_CATEGORY_START + 10,
851 "Repository upgrade is not supported")
853 /* generic RA errors */
855 SVN_ERRDEF(SVN_ERR_RA_ILLEGAL_URL,
856 SVN_ERR_RA_CATEGORY_START + 0,
857 "Bad URL passed to RA layer")
859 SVN_ERRDEF(SVN_ERR_RA_NOT_AUTHORIZED,
860 SVN_ERR_RA_CATEGORY_START + 1,
861 "Authorization failed")
863 SVN_ERRDEF(SVN_ERR_RA_UNKNOWN_AUTH,
864 SVN_ERR_RA_CATEGORY_START + 2,
865 "Unknown authorization method")
867 SVN_ERRDEF(SVN_ERR_RA_NOT_IMPLEMENTED,
868 SVN_ERR_RA_CATEGORY_START + 3,
869 "Repository access method not implemented")
871 SVN_ERRDEF(SVN_ERR_RA_OUT_OF_DATE,
872 SVN_ERR_RA_CATEGORY_START + 4,
873 "Item is out of date")
875 SVN_ERRDEF(SVN_ERR_RA_NO_REPOS_UUID,
876 SVN_ERR_RA_CATEGORY_START + 5,
877 "Repository has no UUID")
879 SVN_ERRDEF(SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
880 SVN_ERR_RA_CATEGORY_START + 6,
881 "Unsupported RA plugin ABI version")
883 /** @since New in 1.2. */
884 SVN_ERRDEF(SVN_ERR_RA_NOT_LOCKED,
885 SVN_ERR_RA_CATEGORY_START + 7,
886 "Path is not locked")
888 /** @since New in 1.5. */
889 SVN_ERRDEF(SVN_ERR_RA_PARTIAL_REPLAY_NOT_SUPPORTED,
890 SVN_ERR_RA_CATEGORY_START + 8,
891 "Server can only replay from the root of a repository")
893 /** @since New in 1.5. */
894 SVN_ERRDEF(SVN_ERR_RA_UUID_MISMATCH,
895 SVN_ERR_RA_CATEGORY_START + 9,
896 "Repository UUID does not match expected UUID")
898 /** @since New in 1.6. */
899 SVN_ERRDEF(SVN_ERR_RA_REPOS_ROOT_URL_MISMATCH,
900 SVN_ERR_RA_CATEGORY_START + 10,
901 "Repository root URL does not match expected root URL")
903 /** @since New in 1.7. */
904 SVN_ERRDEF(SVN_ERR_RA_SESSION_URL_MISMATCH,
905 SVN_ERR_RA_CATEGORY_START + 11,
906 "Session URL does not match expected session URL")
908 /** @since New in 1.8. */
909 SVN_ERRDEF(SVN_ERR_RA_CANNOT_CREATE_TUNNEL,
910 SVN_ERR_RA_CATEGORY_START + 12,
911 "Can't create tunnel")
913 /* ra_dav errors */
915 SVN_ERRDEF(SVN_ERR_RA_DAV_SOCK_INIT,
916 SVN_ERR_RA_DAV_CATEGORY_START + 0,
917 "RA layer failed to init socket layer")
919 SVN_ERRDEF(SVN_ERR_RA_DAV_CREATING_REQUEST,
920 SVN_ERR_RA_DAV_CATEGORY_START + 1,
921 "RA layer failed to create HTTP request")
923 SVN_ERRDEF(SVN_ERR_RA_DAV_REQUEST_FAILED,
924 SVN_ERR_RA_DAV_CATEGORY_START + 2,
925 "RA layer request failed")
927 SVN_ERRDEF(SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
928 SVN_ERR_RA_DAV_CATEGORY_START + 3,
929 "RA layer didn't receive requested OPTIONS info")
931 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
932 SVN_ERR_RA_DAV_CATEGORY_START + 4,
933 "RA layer failed to fetch properties")
935 SVN_ERRDEF(SVN_ERR_RA_DAV_ALREADY_EXISTS,
936 SVN_ERR_RA_DAV_CATEGORY_START + 5,
937 "RA layer file already exists")
939 /** @deprecated To improve consistency between ra layers, this error code
940 is replaced by SVN_ERR_BAD_CONFIG_VALUE.
941 Slated for removal in the next major release. */
942 SVN_ERRDEF(SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
943 SVN_ERR_RA_DAV_CATEGORY_START + 6,
944 "Invalid configuration value")
946 /** @deprecated To improve consistency between ra layers, this error code
947 is replaced in ra_serf by SVN_ERR_FS_NOT_FOUND.
948 Slated for removal in the next major release. */
949 SVN_ERRDEF(SVN_ERR_RA_DAV_PATH_NOT_FOUND,
950 SVN_ERR_RA_DAV_CATEGORY_START + 7,
951 "HTTP Path Not Found")
953 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPPATCH_FAILED,
954 SVN_ERR_RA_DAV_CATEGORY_START + 8,
955 "Failed to execute WebDAV PROPPATCH")
957 /** @since New in 1.2. */
958 SVN_ERRDEF(SVN_ERR_RA_DAV_MALFORMED_DATA,
959 SVN_ERR_RA_DAV_CATEGORY_START + 9,
960 "Malformed network data")
962 /** @since New in 1.3 */
963 SVN_ERRDEF(SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS,
964 SVN_ERR_RA_DAV_CATEGORY_START + 10,
965 "Unable to extract data from response header")
967 /** @since New in 1.5 */
968 SVN_ERRDEF(SVN_ERR_RA_DAV_RELOCATED,
969 SVN_ERR_RA_DAV_CATEGORY_START + 11,
970 "Repository has been moved")
972 /** @since New in 1.7 */
973 SVN_ERRDEF(SVN_ERR_RA_DAV_CONN_TIMEOUT,
974 SVN_ERR_RA_DAV_CATEGORY_START + 12,
975 "Connection timed out")
977 /** @since New in 1.6 */
978 SVN_ERRDEF(SVN_ERR_RA_DAV_FORBIDDEN,
979 SVN_ERR_RA_DAV_CATEGORY_START + 13,
980 "URL access forbidden for unknown reason")
982 /* ra_local errors */
984 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
985 SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
986 "Couldn't find a repository")
988 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
989 SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
990 "Couldn't open a repository")
992 /* svndiff errors */
994 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_HEADER,
995 SVN_ERR_SVNDIFF_CATEGORY_START + 0,
996 "Svndiff data has invalid header")
998 SVN_ERRDEF(SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
999 SVN_ERR_SVNDIFF_CATEGORY_START + 1,
1000 "Svndiff data contains corrupt window")
1002 SVN_ERRDEF(SVN_ERR_SVNDIFF_BACKWARD_VIEW,
1003 SVN_ERR_SVNDIFF_CATEGORY_START + 2,
1004 "Svndiff data contains backward-sliding source view")
1006 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_OPS,
1007 SVN_ERR_SVNDIFF_CATEGORY_START + 3,
1008 "Svndiff data contains invalid instruction")
1010 SVN_ERRDEF(SVN_ERR_SVNDIFF_UNEXPECTED_END,
1011 SVN_ERR_SVNDIFF_CATEGORY_START + 4,
1012 "Svndiff data ends unexpectedly")
1014 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA,
1015 SVN_ERR_SVNDIFF_CATEGORY_START + 5,
1016 "Svndiff compressed data is invalid")
1018 /* mod_dav_svn errors */
1020 SVN_ERRDEF(SVN_ERR_APMOD_MISSING_PATH_TO_FS,
1021 SVN_ERR_APMOD_CATEGORY_START + 0,
1022 "Apache has no path to an SVN filesystem")
1024 SVN_ERRDEF(SVN_ERR_APMOD_MALFORMED_URI,
1025 SVN_ERR_APMOD_CATEGORY_START + 1,
1026 "Apache got a malformed URI")
1028 SVN_ERRDEF(SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
1029 SVN_ERR_APMOD_CATEGORY_START + 2,
1030 "Activity not found")
1032 SVN_ERRDEF(SVN_ERR_APMOD_BAD_BASELINE,
1033 SVN_ERR_APMOD_CATEGORY_START + 3,
1034 "Baseline incorrect")
1036 SVN_ERRDEF(SVN_ERR_APMOD_CONNECTION_ABORTED,
1037 SVN_ERR_APMOD_CATEGORY_START + 4,
1038 "Input/output error")
1040 /* libsvn_client errors */
1042 SVN_ERRDEF(SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
1043 SVN_ERR_CLIENT_CATEGORY_START + 0,
1044 "A path under version control is needed for this operation")
1046 SVN_ERRDEF(SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
1047 SVN_ERR_CLIENT_CATEGORY_START + 1,
1048 "Repository access is needed for this operation")
1050 SVN_ERRDEF(SVN_ERR_CLIENT_BAD_REVISION,
1051 SVN_ERR_CLIENT_CATEGORY_START + 2,
1052 "Bogus revision information given")
1054 SVN_ERRDEF(SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
1055 SVN_ERR_CLIENT_CATEGORY_START + 3,
1056 "Attempting to commit to a URL more than once")
1058 SVN_ERRDEF(SVN_ERR_CLIENT_IS_BINARY_FILE,
1059 SVN_ERR_CLIENT_CATEGORY_START + 4,
1060 "Operation does not apply to binary file")
1062 /*### SVN_PROP_EXTERNALS needed to be replaced with "svn:externals"
1063 in order to get gettext translatable strings */
1064 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
1065 SVN_ERR_CLIENT_CATEGORY_START + 5,
1066 "Format of an svn:externals property was invalid")
1068 SVN_ERRDEF(SVN_ERR_CLIENT_MODIFIED,
1069 SVN_ERR_CLIENT_CATEGORY_START + 6,
1070 "Attempting restricted operation for modified resource")
1072 SVN_ERRDEF(SVN_ERR_CLIENT_IS_DIRECTORY,
1073 SVN_ERR_CLIENT_CATEGORY_START + 7,
1074 "Operation does not apply to directory")
1076 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_RANGE,
1077 SVN_ERR_CLIENT_CATEGORY_START + 8,
1078 "Revision range is not allowed")
1080 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_RELOCATION,
1081 SVN_ERR_CLIENT_CATEGORY_START + 9,
1082 "Inter-repository relocation not allowed")
1084 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
1085 SVN_ERR_CLIENT_CATEGORY_START + 10,
1086 "Author name cannot contain a newline")
1088 SVN_ERRDEF(SVN_ERR_CLIENT_PROPERTY_NAME,
1089 SVN_ERR_CLIENT_CATEGORY_START + 11,
1090 "Bad property name")
1092 /** @since New in 1.1. */
1093 SVN_ERRDEF(SVN_ERR_CLIENT_UNRELATED_RESOURCES,
1094 SVN_ERR_CLIENT_CATEGORY_START + 12,
1095 "Two versioned resources are unrelated")
1097 /** @since New in 1.2. */
1098 SVN_ERRDEF(SVN_ERR_CLIENT_MISSING_LOCK_TOKEN,
1099 SVN_ERR_CLIENT_CATEGORY_START + 13,
1100 "Path has no lock token")
1102 /** @since New in 1.5. */
1103 SVN_ERRDEF(SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED,
1104 SVN_ERR_CLIENT_CATEGORY_START + 14,
1105 "Operation does not support multiple sources")
1107 /** @since New in 1.5. */
1108 SVN_ERRDEF(SVN_ERR_CLIENT_NO_VERSIONED_PARENT,
1109 SVN_ERR_CLIENT_CATEGORY_START + 15,
1110 "No versioned parent directories")
1112 /** @since New in 1.5. */
1113 SVN_ERRDEF(SVN_ERR_CLIENT_NOT_READY_TO_MERGE,
1114 SVN_ERR_CLIENT_CATEGORY_START + 16,
1115 "Working copy and merge source not ready for reintegration")
1117 /** @since New in 1.6. */
1118 SVN_ERRDEF(SVN_ERR_CLIENT_FILE_EXTERNAL_OVERWRITE_VERSIONED,
1119 SVN_ERR_CLIENT_CATEGORY_START + 17,
1120 "A file external cannot overwrite an existing versioned item")
1122 /** @since New in 1.7. */
1123 SVN_ERRDEF(SVN_ERR_CLIENT_PATCH_BAD_STRIP_COUNT,
1124 SVN_ERR_CLIENT_CATEGORY_START + 18,
1125 "Invalid path component strip count specified")
1127 /** @since New in 1.7. */
1128 SVN_ERRDEF(SVN_ERR_CLIENT_CYCLE_DETECTED,
1129 SVN_ERR_CLIENT_CATEGORY_START + 19,
1130 "Detected a cycle while processing the operation")
1132 /** @since New in 1.7. */
1133 SVN_ERRDEF(SVN_ERR_CLIENT_MERGE_UPDATE_REQUIRED,
1134 SVN_ERR_CLIENT_CATEGORY_START + 20,
1135 "Working copy and merge source not ready for reintegration")
1137 /** @since New in 1.7. */
1138 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_MERGEINFO_NO_MERGETRACKING,
1139 SVN_ERR_CLIENT_CATEGORY_START + 21,
1140 "Invalid mergeinfo detected in merge target")
1142 /** @since New in 1.7. */
1143 SVN_ERRDEF(SVN_ERR_CLIENT_NO_LOCK_TOKEN,
1144 SVN_ERR_CLIENT_CATEGORY_START + 22,
1145 "Can't perform this operation without a valid lock token")
1147 /** @since New in 1.7. */
1148 SVN_ERRDEF(SVN_ERR_CLIENT_FORBIDDEN_BY_SERVER,
1149 SVN_ERR_CLIENT_CATEGORY_START + 23,
1150 "The operation is forbidden by the server")
1152 /* misc errors */
1154 SVN_ERRDEF(SVN_ERR_BASE,
1155 SVN_ERR_MISC_CATEGORY_START + 0,
1156 "A problem occurred; see other errors for details")
1158 SVN_ERRDEF(SVN_ERR_PLUGIN_LOAD_FAILURE,
1159 SVN_ERR_MISC_CATEGORY_START + 1,
1160 "Failure loading plugin")
1162 SVN_ERRDEF(SVN_ERR_MALFORMED_FILE,
1163 SVN_ERR_MISC_CATEGORY_START + 2,
1164 "Malformed file")
1166 SVN_ERRDEF(SVN_ERR_INCOMPLETE_DATA,
1167 SVN_ERR_MISC_CATEGORY_START + 3,
1168 "Incomplete data")
1170 SVN_ERRDEF(SVN_ERR_INCORRECT_PARAMS,
1171 SVN_ERR_MISC_CATEGORY_START + 4,
1172 "Incorrect parameters given")
1174 SVN_ERRDEF(SVN_ERR_UNVERSIONED_RESOURCE,
1175 SVN_ERR_MISC_CATEGORY_START + 5,
1176 "Tried a versioning operation on an unversioned resource")
1178 SVN_ERRDEF(SVN_ERR_TEST_FAILED,
1179 SVN_ERR_MISC_CATEGORY_START + 6,
1180 "Test failed")
1182 SVN_ERRDEF(SVN_ERR_UNSUPPORTED_FEATURE,
1183 SVN_ERR_MISC_CATEGORY_START + 7,
1184 "Trying to use an unsupported feature")
1186 SVN_ERRDEF(SVN_ERR_BAD_PROP_KIND,
1187 SVN_ERR_MISC_CATEGORY_START + 8,
1188 "Unexpected or unknown property kind")
1190 SVN_ERRDEF(SVN_ERR_ILLEGAL_TARGET,
1191 SVN_ERR_MISC_CATEGORY_START + 9,
1192 "Illegal target for the requested operation")
1194 SVN_ERRDEF(SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
1195 SVN_ERR_MISC_CATEGORY_START + 10,
1196 "MD5 checksum is missing")
1198 SVN_ERRDEF(SVN_ERR_DIR_NOT_EMPTY,
1199 SVN_ERR_MISC_CATEGORY_START + 11,
1200 "Directory needs to be empty but is not")
1202 SVN_ERRDEF(SVN_ERR_EXTERNAL_PROGRAM,
1203 SVN_ERR_MISC_CATEGORY_START + 12,
1204 "Error calling external program")
1206 SVN_ERRDEF(SVN_ERR_SWIG_PY_EXCEPTION_SET,
1207 SVN_ERR_MISC_CATEGORY_START + 13,
1208 "Python exception has been set with the error")
1210 SVN_ERRDEF(SVN_ERR_CHECKSUM_MISMATCH,
1211 SVN_ERR_MISC_CATEGORY_START + 14,
1212 "A checksum mismatch occurred")
1214 SVN_ERRDEF(SVN_ERR_CANCELLED,
1215 SVN_ERR_MISC_CATEGORY_START + 15,
1216 "The operation was interrupted")
1218 SVN_ERRDEF(SVN_ERR_INVALID_DIFF_OPTION,
1219 SVN_ERR_MISC_CATEGORY_START + 16,
1220 "The specified diff option is not supported")
1222 SVN_ERRDEF(SVN_ERR_PROPERTY_NOT_FOUND,
1223 SVN_ERR_MISC_CATEGORY_START + 17,
1224 "Property not found")
1226 SVN_ERRDEF(SVN_ERR_NO_AUTH_FILE_PATH,
1227 SVN_ERR_MISC_CATEGORY_START + 18,
1228 "No auth file path available")
1230 /** @since New in 1.1. */
1231 SVN_ERRDEF(SVN_ERR_VERSION_MISMATCH,
1232 SVN_ERR_MISC_CATEGORY_START + 19,
1233 "Incompatible library version")
1235 /** @since New in 1.5. */
1236 SVN_ERRDEF(SVN_ERR_MERGEINFO_PARSE_ERROR,
1237 SVN_ERR_MISC_CATEGORY_START + 20,
1238 "Mergeinfo parse error")
1240 /** @since New in 1.5. */
1241 SVN_ERRDEF(SVN_ERR_CEASE_INVOCATION,
1242 SVN_ERR_MISC_CATEGORY_START + 21,
1243 "Cease invocation of this API")
1245 /** @since New in 1.5. */
1246 SVN_ERRDEF(SVN_ERR_REVNUM_PARSE_FAILURE,
1247 SVN_ERR_MISC_CATEGORY_START + 22,
1248 "Error parsing revision number")
1250 /** @since New in 1.5. */
1251 SVN_ERRDEF(SVN_ERR_ITER_BREAK,
1252 SVN_ERR_MISC_CATEGORY_START + 23,
1253 "Iteration terminated before completion")
1255 /** @since New in 1.5. */
1256 SVN_ERRDEF(SVN_ERR_UNKNOWN_CHANGELIST,
1257 SVN_ERR_MISC_CATEGORY_START + 24,
1258 "Unknown changelist")
1260 /** @since New in 1.5. */
1261 SVN_ERRDEF(SVN_ERR_RESERVED_FILENAME_SPECIFIED,
1262 SVN_ERR_MISC_CATEGORY_START + 25,
1263 "Reserved directory name in command line arguments")
1265 /** @since New in 1.5. */
1266 SVN_ERRDEF(SVN_ERR_UNKNOWN_CAPABILITY,
1267 SVN_ERR_MISC_CATEGORY_START + 26,
1268 "Inquiry about unknown capability")
1270 /** @since New in 1.6. */
1271 SVN_ERRDEF(SVN_ERR_TEST_SKIPPED,
1272 SVN_ERR_MISC_CATEGORY_START + 27,
1273 "Test skipped")
1275 /** @since New in 1.6. */
1276 SVN_ERRDEF(SVN_ERR_NO_APR_MEMCACHE,
1277 SVN_ERR_MISC_CATEGORY_START + 28,
1278 "apr memcache library not available")
1280 /** @since New in 1.6. */
1281 SVN_ERRDEF(SVN_ERR_ATOMIC_INIT_FAILURE,
1282 SVN_ERR_MISC_CATEGORY_START + 29,
1283 "Couldn't perform atomic initialization")
1285 /** @since New in 1.6. */
1286 SVN_ERRDEF(SVN_ERR_SQLITE_ERROR,
1287 SVN_ERR_MISC_CATEGORY_START + 30,
1288 "SQLite error")
1290 /** @since New in 1.6. */
1291 SVN_ERRDEF(SVN_ERR_SQLITE_READONLY,
1292 SVN_ERR_MISC_CATEGORY_START + 31,
1293 "Attempted to write to readonly SQLite db")
1295 /** @since New in 1.6.
1296 * @deprecated the internal sqlite support code does not manage schemas
1297 * any longer. */
1298 SVN_ERRDEF(SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA,
1299 SVN_ERR_MISC_CATEGORY_START + 32,
1300 "Unsupported schema found in SQLite db")
1302 /** @since New in 1.7. */
1303 SVN_ERRDEF(SVN_ERR_SQLITE_BUSY,
1304 SVN_ERR_MISC_CATEGORY_START + 33,
1305 "The SQLite db is busy")
1307 /** @since New in 1.7. */
1308 SVN_ERRDEF(SVN_ERR_SQLITE_RESETTING_FOR_ROLLBACK,
1309 SVN_ERR_MISC_CATEGORY_START + 34,
1310 "SQLite busy at transaction rollback; "
1311 "resetting all busy SQLite statements to allow rollback")
1313 /** @since New in 1.7. */
1314 SVN_ERRDEF(SVN_ERR_SQLITE_CONSTRAINT,
1315 SVN_ERR_MISC_CATEGORY_START + 35,
1316 "Constraint error in SQLite db")
1318 /** @since New in 1.8. */
1319 SVN_ERRDEF(SVN_ERR_TOO_MANY_MEMCACHED_SERVERS,
1320 SVN_ERR_MISC_CATEGORY_START + 36,
1321 "Too many memcached servers configured")
1323 /** @since New in 1.8. */
1324 SVN_ERRDEF(SVN_ERR_MALFORMED_VERSION_STRING,
1325 SVN_ERR_MISC_CATEGORY_START + 37,
1326 "Failed to parse version number string")
1328 /** @since New in 1.8. */
1329 SVN_ERRDEF(SVN_ERR_CORRUPTED_ATOMIC_STORAGE,
1330 SVN_ERR_MISC_CATEGORY_START + 38,
1331 "Atomic data storage is corrupt")
1333 /* command-line client errors */
1335 SVN_ERRDEF(SVN_ERR_CL_ARG_PARSING_ERROR,
1336 SVN_ERR_CL_CATEGORY_START + 0,
1337 "Error parsing arguments")
1339 SVN_ERRDEF(SVN_ERR_CL_INSUFFICIENT_ARGS,
1340 SVN_ERR_CL_CATEGORY_START + 1,
1341 "Not enough arguments provided")
1343 SVN_ERRDEF(SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
1344 SVN_ERR_CL_CATEGORY_START + 2,
1345 "Mutually exclusive arguments specified")
1347 SVN_ERRDEF(SVN_ERR_CL_ADM_DIR_RESERVED,
1348 SVN_ERR_CL_CATEGORY_START + 3,
1349 "Attempted command in administrative dir")
1351 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
1352 SVN_ERR_CL_CATEGORY_START + 4,
1353 "The log message file is under version control")
1355 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
1356 SVN_ERR_CL_CATEGORY_START + 5,
1357 "The log message is a pathname")
1359 SVN_ERRDEF(SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
1360 SVN_ERR_CL_CATEGORY_START + 6,
1361 "Committing in directory scheduled for addition")
1363 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_EDITOR,
1364 SVN_ERR_CL_CATEGORY_START + 7,
1365 "No external editor available")
1367 SVN_ERRDEF(SVN_ERR_CL_BAD_LOG_MESSAGE,
1368 SVN_ERR_CL_CATEGORY_START + 8,
1369 "Something is wrong with the log message's contents")
1371 SVN_ERRDEF(SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE,
1372 SVN_ERR_CL_CATEGORY_START + 9,
1373 "A log message was given where none was necessary")
1375 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_MERGE_TOOL,
1376 SVN_ERR_CL_CATEGORY_START + 10,
1377 "No external merge tool available")
1379 SVN_ERRDEF(SVN_ERR_CL_ERROR_PROCESSING_EXTERNALS,
1380 SVN_ERR_CL_CATEGORY_START + 11,
1381 "Failed processing one or more externals definitions")
1383 /* ra_svn errors */
1385 SVN_ERRDEF(SVN_ERR_RA_SVN_CMD_ERR,
1386 SVN_ERR_RA_SVN_CATEGORY_START + 0,
1387 "Special code for wrapping server errors to report to client")
1389 SVN_ERRDEF(SVN_ERR_RA_SVN_UNKNOWN_CMD,
1390 SVN_ERR_RA_SVN_CATEGORY_START + 1,
1391 "Unknown svn protocol command")
1393 SVN_ERRDEF(SVN_ERR_RA_SVN_CONNECTION_CLOSED,
1394 SVN_ERR_RA_SVN_CATEGORY_START + 2,
1395 "Network connection closed unexpectedly")
1397 SVN_ERRDEF(SVN_ERR_RA_SVN_IO_ERROR,
1398 SVN_ERR_RA_SVN_CATEGORY_START + 3,
1399 "Network read/write error")
1401 SVN_ERRDEF(SVN_ERR_RA_SVN_MALFORMED_DATA,
1402 SVN_ERR_RA_SVN_CATEGORY_START + 4,
1403 "Malformed network data")
1405 SVN_ERRDEF(SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
1406 SVN_ERR_RA_SVN_CATEGORY_START + 5,
1407 "Couldn't find a repository")
1409 SVN_ERRDEF(SVN_ERR_RA_SVN_BAD_VERSION,
1410 SVN_ERR_RA_SVN_CATEGORY_START + 6,
1411 "Client/server version mismatch")
1413 /** @since New in 1.5. */
1414 SVN_ERRDEF(SVN_ERR_RA_SVN_NO_MECHANISMS,
1415 SVN_ERR_RA_SVN_CATEGORY_START + 7,
1416 "Cannot negotiate authentication mechanism")
1418 /** @since New in 1.7 */
1419 SVN_ERRDEF(SVN_ERR_RA_SVN_EDIT_ABORTED,
1420 SVN_ERR_RA_SVN_CATEGORY_START + 8,
1421 "Editor drive was aborted")
1423 /* libsvn_auth errors */
1425 /* this error can be used when an auth provider doesn't have
1426 the creds, but no other "real" error occurred. */
1427 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
1428 SVN_ERR_AUTHN_CATEGORY_START + 0,
1429 "Credential data unavailable")
1431 SVN_ERRDEF(SVN_ERR_AUTHN_NO_PROVIDER,
1432 SVN_ERR_AUTHN_CATEGORY_START + 1,
1433 "No authentication provider available")
1435 SVN_ERRDEF(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
1436 SVN_ERR_AUTHN_CATEGORY_START + 2,
1437 "All authentication providers exhausted")
1439 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_NOT_SAVED,
1440 SVN_ERR_AUTHN_CATEGORY_START + 3,
1441 "Credentials not saved")
1443 /** @since New in 1.5. */
1444 SVN_ERRDEF(SVN_ERR_AUTHN_FAILED,
1445 SVN_ERR_AUTHN_CATEGORY_START + 4,
1446 "Authentication failed")
1448 /* authorization errors */
1450 SVN_ERRDEF(SVN_ERR_AUTHZ_ROOT_UNREADABLE,
1451 SVN_ERR_AUTHZ_CATEGORY_START + 0,
1452 "Read access denied for root of edit")
1454 /** @since New in 1.1. */
1455 SVN_ERRDEF(SVN_ERR_AUTHZ_UNREADABLE,
1456 SVN_ERR_AUTHZ_CATEGORY_START + 1,
1457 "Item is not readable")
1459 /** @since New in 1.1. */
1460 SVN_ERRDEF(SVN_ERR_AUTHZ_PARTIALLY_READABLE,
1461 SVN_ERR_AUTHZ_CATEGORY_START + 2,
1462 "Item is partially readable")
1464 SVN_ERRDEF(SVN_ERR_AUTHZ_INVALID_CONFIG,
1465 SVN_ERR_AUTHZ_CATEGORY_START + 3,
1466 "Invalid authz configuration")
1468 /** @since New in 1.3 */
1469 SVN_ERRDEF(SVN_ERR_AUTHZ_UNWRITABLE,
1470 SVN_ERR_AUTHZ_CATEGORY_START + 4,
1471 "Item is not writable")
1474 /* libsvn_diff errors */
1476 SVN_ERRDEF(SVN_ERR_DIFF_DATASOURCE_MODIFIED,
1477 SVN_ERR_DIFF_CATEGORY_START + 0,
1478 "Diff data source modified unexpectedly")
1480 /* libsvn_ra_serf errors */
1481 /** @since New in 1.5. */
1482 SVN_ERRDEF(SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED,
1483 SVN_ERR_RA_SERF_CATEGORY_START + 0,
1484 "Initialization of SSPI library failed")
1485 /** @since New in 1.5. */
1486 SVN_ERRDEF(SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED,
1487 SVN_ERR_RA_SERF_CATEGORY_START + 1,
1488 "Server SSL certificate untrusted")
1489 /** @since New in 1.7.
1490 @deprecated GSSAPI now handled by serf rather than libsvn_ra_serf. */
1491 SVN_ERRDEF(SVN_ERR_RA_SERF_GSSAPI_INITIALISATION_FAILED,
1492 SVN_ERR_RA_SERF_CATEGORY_START + 2,
1493 "Initialization of the GSSAPI context failed")
1495 /** @since New in 1.7. */
1496 SVN_ERRDEF(SVN_ERR_RA_SERF_WRAPPED_ERROR,
1497 SVN_ERR_RA_SERF_CATEGORY_START + 3,
1498 "While handling serf response:")
1500 /* malfunctions such as assertion failures */
1502 SVN_ERRDEF(SVN_ERR_ASSERTION_FAIL,
1503 SVN_ERR_MALFUNC_CATEGORY_START + 0,
1504 "Assertion failure")
1506 SVN_ERRDEF(SVN_ERR_ASSERTION_ONLY_TRACING_LINKS,
1507 SVN_ERR_MALFUNC_CATEGORY_START + 1,
1508 "No non-tracing links found in the error chain")
1510 SVN_ERROR_END
1513 #undef SVN_ERROR_START
1514 #undef SVN_ERRDEF
1515 #undef SVN_ERROR_END
1517 #ifdef __cplusplus
1519 #endif /* __cplusplus */
1521 #endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */