3 * ====================================================================
\r
4 * Copyright (c) 2000-2009 CollabNet. All rights reserved.
\r
6 * This software is licensed as described in the file COPYING, which
\r
7 * you should have received as part of this distribution. The terms
\r
8 * are also available at http://subversion.tigris.org/license-1.html.
\r
9 * If newer versions of this license are posted there, you may use a
\r
10 * newer version instead, at your option.
\r
12 * This software consists of voluntary contributions made by many
\r
13 * individuals. For exact contribution history, see the revision
\r
14 * history and logs, available at http://subversion.tigris.org/.
\r
15 * ====================================================================
\r
18 * @file svn_error_codes.h
\r
19 * @brief Subversion error codes.
\r
22 /* What's going on here?
\r
24 In order to define error codes and their associated description
\r
25 strings in the same place, we overload the SVN_ERRDEF() macro with
\r
26 two definitions below. Both take two arguments, an error code name
\r
27 and a description string. One definition of the macro just throws
\r
28 away the string and defines enumeration constants using the error
\r
29 code names -- that definition is used by the header file that
\r
30 exports error codes to the rest of Subversion. The other
\r
31 definition creates a static table mapping the enum codes to their
\r
32 corresponding strings -- that definition is used by the C file that
\r
33 implements svn_strerror().
\r
35 The header and C files both include this file, using #defines to
\r
36 control which version of the macro they get.
\r
40 /* Process this file if we're building an error array, or if we have
\r
41 not defined the enumerated constants yet. */
\r
42 #if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED)
\r
45 #include <apr_errno.h> /* APR's error system */
\r
49 #endif /* __cplusplus */
\r
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
\r
53 #if defined(SVN_ERROR_BUILD_ARRAY)
\r
55 #define SVN_ERROR_START \
\r
56 static const err_defn error_table[] = { \
\r
57 { SVN_WARNING, "Warning" },
\r
58 #define SVN_ERRDEF(num, offset, str) { num, str },
\r
59 #define SVN_ERROR_END { 0, NULL } };
\r
61 #elif !defined(SVN_ERROR_ENUM_DEFINED)
\r
63 #define SVN_ERROR_START \
\r
64 typedef enum svn_errno_t { \
\r
65 SVN_WARNING = APR_OS_START_USERERR + 1,
\r
66 #define SVN_ERRDEF(num, offset, str) /** str */ num = offset,
\r
67 #define SVN_ERROR_END SVN_ERR_LAST } svn_errno_t;
\r
69 #define SVN_ERROR_ENUM_DEFINED
\r
73 /* Define custom Subversion error numbers, in the range reserved for
\r
74 that in APR: from APR_OS_START_USERERR to APR_OS_START_SYSERR (see
\r
77 Error numbers are divided into categories of up to 5000 errors
\r
78 each. Since we're dividing up the APR user error space, which has
\r
79 room for 500,000 errors, we can have up to 100 categories.
\r
80 Categories are fixed-size; if a category has fewer than 5000
\r
81 errors, then it just ends with a range of unused numbers.
\r
83 To maintain binary compatibility, please observe these guidelines:
\r
85 - When adding a new error, always add on the end of the
\r
86 appropriate category, so that the real values of existing
\r
87 errors are not changed.
\r
89 - When deleting an error, leave a placeholder comment indicating
\r
90 the offset, again so that the values of other errors are not
\r
94 #define SVN_ERR_CATEGORY_SIZE 5000
\r
96 /* Leave one category of room at the beginning, for SVN_WARNING and
\r
97 any other such beasts we might create in the future. */
\r
98 #define SVN_ERR_BAD_CATEGORY_START (APR_OS_START_USERERR \
\r
99 + ( 1 * SVN_ERR_CATEGORY_SIZE))
\r
100 #define SVN_ERR_XML_CATEGORY_START (APR_OS_START_USERERR \
\r
101 + ( 2 * SVN_ERR_CATEGORY_SIZE))
\r
102 #define SVN_ERR_IO_CATEGORY_START (APR_OS_START_USERERR \
\r
103 + ( 3 * SVN_ERR_CATEGORY_SIZE))
\r
104 #define SVN_ERR_STREAM_CATEGORY_START (APR_OS_START_USERERR \
\r
105 + ( 4 * SVN_ERR_CATEGORY_SIZE))
\r
106 #define SVN_ERR_NODE_CATEGORY_START (APR_OS_START_USERERR \
\r
107 + ( 5 * SVN_ERR_CATEGORY_SIZE))
\r
108 #define SVN_ERR_ENTRY_CATEGORY_START (APR_OS_START_USERERR \
\r
109 + ( 6 * SVN_ERR_CATEGORY_SIZE))
\r
110 #define SVN_ERR_WC_CATEGORY_START (APR_OS_START_USERERR \
\r
111 + ( 7 * SVN_ERR_CATEGORY_SIZE))
\r
112 #define SVN_ERR_FS_CATEGORY_START (APR_OS_START_USERERR \
\r
113 + ( 8 * SVN_ERR_CATEGORY_SIZE))
\r
114 #define SVN_ERR_REPOS_CATEGORY_START (APR_OS_START_USERERR \
\r
115 + ( 9 * SVN_ERR_CATEGORY_SIZE))
\r
116 #define SVN_ERR_RA_CATEGORY_START (APR_OS_START_USERERR \
\r
117 + (10 * SVN_ERR_CATEGORY_SIZE))
\r
118 #define SVN_ERR_RA_DAV_CATEGORY_START (APR_OS_START_USERERR \
\r
119 + (11 * SVN_ERR_CATEGORY_SIZE))
\r
120 #define SVN_ERR_RA_LOCAL_CATEGORY_START (APR_OS_START_USERERR \
\r
121 + (12 * SVN_ERR_CATEGORY_SIZE))
\r
122 #define SVN_ERR_SVNDIFF_CATEGORY_START (APR_OS_START_USERERR \
\r
123 + (13 * SVN_ERR_CATEGORY_SIZE))
\r
124 #define SVN_ERR_APMOD_CATEGORY_START (APR_OS_START_USERERR \
\r
125 + (14 * SVN_ERR_CATEGORY_SIZE))
\r
126 #define SVN_ERR_CLIENT_CATEGORY_START (APR_OS_START_USERERR \
\r
127 + (15 * SVN_ERR_CATEGORY_SIZE))
\r
128 #define SVN_ERR_MISC_CATEGORY_START (APR_OS_START_USERERR \
\r
129 + (16 * SVN_ERR_CATEGORY_SIZE))
\r
130 #define SVN_ERR_CL_CATEGORY_START (APR_OS_START_USERERR \
\r
131 + (17 * SVN_ERR_CATEGORY_SIZE))
\r
132 #define SVN_ERR_RA_SVN_CATEGORY_START (APR_OS_START_USERERR \
\r
133 + (18 * SVN_ERR_CATEGORY_SIZE))
\r
134 #define SVN_ERR_AUTHN_CATEGORY_START (APR_OS_START_USERERR \
\r
135 + (19 * SVN_ERR_CATEGORY_SIZE))
\r
136 #define SVN_ERR_AUTHZ_CATEGORY_START (APR_OS_START_USERERR \
\r
137 + (20 * SVN_ERR_CATEGORY_SIZE))
\r
138 #define SVN_ERR_DIFF_CATEGORY_START (APR_OS_START_USERERR \
\r
139 + (21 * SVN_ERR_CATEGORY_SIZE))
\r
140 #define SVN_ERR_RA_SERF_CATEGORY_START (APR_OS_START_USERERR \
\r
141 + (22 * SVN_ERR_CATEGORY_SIZE))
\r
142 #define SVN_ERR_MALFUNC_CATEGORY_START (APR_OS_START_USERERR \
\r
143 + (23 * SVN_ERR_CATEGORY_SIZE))
\r
145 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
\r
147 /** Collection of Subversion error code values, located within the
\r
148 * APR user error space. */
\r
151 /* validation ("BAD_FOO") errors */
\r
153 SVN_ERRDEF(SVN_ERR_BAD_CONTAINING_POOL,
\r
154 SVN_ERR_BAD_CATEGORY_START + 0,
\r
155 "Bad parent pool passed to svn_make_pool()")
\r
157 SVN_ERRDEF(SVN_ERR_BAD_FILENAME,
\r
158 SVN_ERR_BAD_CATEGORY_START + 1,
\r
161 SVN_ERRDEF(SVN_ERR_BAD_URL,
\r
162 SVN_ERR_BAD_CATEGORY_START + 2,
\r
165 SVN_ERRDEF(SVN_ERR_BAD_DATE,
\r
166 SVN_ERR_BAD_CATEGORY_START + 3,
\r
169 SVN_ERRDEF(SVN_ERR_BAD_MIME_TYPE,
\r
170 SVN_ERR_BAD_CATEGORY_START + 4,
\r
173 /** @since New in 1.5.
\r
175 * Note that there was an unused slot sitting here at
\r
176 * SVN_ERR_BAD_CATEGORY_START + 5, so error codes after this aren't
\r
177 * necessarily "New in 1.5" just because they come later.
\r
179 SVN_ERRDEF(SVN_ERR_BAD_PROPERTY_VALUE,
\r
180 SVN_ERR_BAD_CATEGORY_START + 5,
\r
181 "Wrong or unexpected property value")
\r
183 SVN_ERRDEF(SVN_ERR_BAD_VERSION_FILE_FORMAT,
\r
184 SVN_ERR_BAD_CATEGORY_START + 6,
\r
185 "Version file format not correct")
\r
187 SVN_ERRDEF(SVN_ERR_BAD_RELATIVE_PATH,
\r
188 SVN_ERR_BAD_CATEGORY_START + 7,
\r
189 "Path is not an immediate child of the specified directory")
\r
191 SVN_ERRDEF(SVN_ERR_BAD_UUID,
\r
192 SVN_ERR_BAD_CATEGORY_START + 8,
\r
195 /** @since New in 1.6. */
\r
196 SVN_ERRDEF(SVN_ERR_BAD_CONFIG_VALUE,
\r
197 SVN_ERR_BAD_CATEGORY_START + 9,
\r
198 "Invalid configuration value")
\r
200 SVN_ERRDEF(SVN_ERR_BAD_SERVER_SPECIFICATION,
\r
201 SVN_ERR_BAD_CATEGORY_START + 10,
\r
202 "Bogus server specification")
\r
204 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_KIND,
\r
205 SVN_ERR_BAD_CATEGORY_START + 11,
\r
206 "Unsupported checksum type")
\r
208 SVN_ERRDEF(SVN_ERR_BAD_CHECKSUM_PARSE,
\r
209 SVN_ERR_BAD_CATEGORY_START + 12,
\r
210 "Invalid character in hex checksum")
\r
214 SVN_ERRDEF(SVN_ERR_XML_ATTRIB_NOT_FOUND,
\r
215 SVN_ERR_XML_CATEGORY_START + 0,
\r
216 "No such XML tag attribute")
\r
218 SVN_ERRDEF(SVN_ERR_XML_MISSING_ANCESTRY,
\r
219 SVN_ERR_XML_CATEGORY_START + 1,
\r
220 "<delta-pkg> is missing ancestry")
\r
222 SVN_ERRDEF(SVN_ERR_XML_UNKNOWN_ENCODING,
\r
223 SVN_ERR_XML_CATEGORY_START + 2,
\r
224 "Unrecognized binary data encoding; can't decode")
\r
226 SVN_ERRDEF(SVN_ERR_XML_MALFORMED,
\r
227 SVN_ERR_XML_CATEGORY_START + 3,
\r
228 "XML data was not well-formed")
\r
230 SVN_ERRDEF(SVN_ERR_XML_UNESCAPABLE_DATA,
\r
231 SVN_ERR_XML_CATEGORY_START + 4,
\r
232 "Data cannot be safely XML-escaped")
\r
236 SVN_ERRDEF(SVN_ERR_IO_INCONSISTENT_EOL,
\r
237 SVN_ERR_IO_CATEGORY_START + 0,
\r
238 "Inconsistent line ending style")
\r
240 SVN_ERRDEF(SVN_ERR_IO_UNKNOWN_EOL,
\r
241 SVN_ERR_IO_CATEGORY_START + 1,
\r
242 "Unrecognized line ending style")
\r
244 /** @deprecated Unused, slated for removal in the next major release. */
\r
245 SVN_ERRDEF(SVN_ERR_IO_CORRUPT_EOL,
\r
246 SVN_ERR_IO_CATEGORY_START + 2,
\r
247 "Line endings other than expected")
\r
249 SVN_ERRDEF(SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
\r
250 SVN_ERR_IO_CATEGORY_START + 3,
\r
251 "Ran out of unique names")
\r
253 /** @deprecated Unused, slated for removal in the next major release. */
\r
254 SVN_ERRDEF(SVN_ERR_IO_PIPE_FRAME_ERROR,
\r
255 SVN_ERR_IO_CATEGORY_START + 4,
\r
256 "Framing error in pipe protocol")
\r
258 /** @deprecated Unused, slated for removal in the next major release. */
\r
259 SVN_ERRDEF(SVN_ERR_IO_PIPE_READ_ERROR,
\r
260 SVN_ERR_IO_CATEGORY_START + 5,
\r
261 "Read error in pipe")
\r
263 SVN_ERRDEF(SVN_ERR_IO_WRITE_ERROR,
\r
264 SVN_ERR_IO_CATEGORY_START + 6,
\r
267 /* stream errors */
\r
269 SVN_ERRDEF(SVN_ERR_STREAM_UNEXPECTED_EOF,
\r
270 SVN_ERR_STREAM_CATEGORY_START + 0,
\r
271 "Unexpected EOF on stream")
\r
273 SVN_ERRDEF(SVN_ERR_STREAM_MALFORMED_DATA,
\r
274 SVN_ERR_STREAM_CATEGORY_START + 1,
\r
275 "Malformed stream data")
\r
277 SVN_ERRDEF(SVN_ERR_STREAM_UNRECOGNIZED_DATA,
\r
278 SVN_ERR_STREAM_CATEGORY_START + 2,
\r
279 "Unrecognized stream data")
\r
283 SVN_ERRDEF(SVN_ERR_NODE_UNKNOWN_KIND,
\r
284 SVN_ERR_NODE_CATEGORY_START + 0,
\r
285 "Unknown svn_node_kind")
\r
287 SVN_ERRDEF(SVN_ERR_NODE_UNEXPECTED_KIND,
\r
288 SVN_ERR_NODE_CATEGORY_START + 1,
\r
289 "Unexpected node kind found")
\r
293 SVN_ERRDEF(SVN_ERR_ENTRY_NOT_FOUND,
\r
294 SVN_ERR_ENTRY_CATEGORY_START + 0,
\r
295 "Can't find an entry")
\r
297 /* UNUSED error slot: + 1 */
\r
299 SVN_ERRDEF(SVN_ERR_ENTRY_EXISTS,
\r
300 SVN_ERR_ENTRY_CATEGORY_START + 2,
\r
301 "Entry already exists")
\r
303 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_REVISION,
\r
304 SVN_ERR_ENTRY_CATEGORY_START + 3,
\r
305 "Entry has no revision")
\r
307 SVN_ERRDEF(SVN_ERR_ENTRY_MISSING_URL,
\r
308 SVN_ERR_ENTRY_CATEGORY_START + 4,
\r
309 "Entry has no URL")
\r
311 SVN_ERRDEF(SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
\r
312 SVN_ERR_ENTRY_CATEGORY_START + 5,
\r
313 "Entry has an invalid attribute")
\r
315 SVN_ERRDEF(SVN_ERR_ENTRY_FORBIDDEN,
\r
316 SVN_ERR_ENTRY_CATEGORY_START + 6,
\r
317 "Can't create an entry for a forbidden name")
\r
321 SVN_ERRDEF(SVN_ERR_WC_OBSTRUCTED_UPDATE,
\r
322 SVN_ERR_WC_CATEGORY_START + 0,
\r
323 "Obstructed update")
\r
325 /** @deprecated Unused, slated for removal in the next major release. */
\r
326 SVN_ERRDEF(SVN_ERR_WC_UNWIND_MISMATCH,
\r
327 SVN_ERR_WC_CATEGORY_START + 1,
\r
328 "Mismatch popping the WC unwind stack")
\r
330 /** @deprecated Unused, slated for removal in the next major release. */
\r
331 SVN_ERRDEF(SVN_ERR_WC_UNWIND_EMPTY,
\r
332 SVN_ERR_WC_CATEGORY_START + 2,
\r
333 "Attempt to pop empty WC unwind stack")
\r
335 /** @deprecated Unused, slated for removal in the next major release. */
\r
336 SVN_ERRDEF(SVN_ERR_WC_UNWIND_NOT_EMPTY,
\r
337 SVN_ERR_WC_CATEGORY_START + 3,
\r
338 "Attempt to unlock with non-empty unwind stack")
\r
340 SVN_ERRDEF(SVN_ERR_WC_LOCKED,
\r
341 SVN_ERR_WC_CATEGORY_START + 4,
\r
342 "Attempted to lock an already-locked dir")
\r
344 SVN_ERRDEF(SVN_ERR_WC_NOT_LOCKED,
\r
345 SVN_ERR_WC_CATEGORY_START + 5,
\r
346 "Working copy not locked; this is probably a bug, please report")
\r
348 /** @deprecated Unused, slated for removal in the next major release. */
\r
349 SVN_ERRDEF(SVN_ERR_WC_INVALID_LOCK,
\r
350 SVN_ERR_WC_CATEGORY_START + 6,
\r
353 SVN_ERRDEF(SVN_ERR_WC_NOT_DIRECTORY,
\r
354 SVN_ERR_WC_CATEGORY_START + 7,
\r
355 "Path is not a working copy directory")
\r
357 SVN_ERRDEF(SVN_ERR_WC_NOT_FILE,
\r
358 SVN_ERR_WC_CATEGORY_START + 8,
\r
359 "Path is not a working copy file")
\r
361 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG,
\r
362 SVN_ERR_WC_CATEGORY_START + 9,
\r
363 "Problem running log")
\r
365 SVN_ERRDEF(SVN_ERR_WC_PATH_NOT_FOUND,
\r
366 SVN_ERR_WC_CATEGORY_START + 10,
\r
367 "Can't find a working copy path")
\r
369 SVN_ERRDEF(SVN_ERR_WC_NOT_UP_TO_DATE,
\r
370 SVN_ERR_WC_CATEGORY_START + 11,
\r
371 "Working copy is not up-to-date")
\r
373 SVN_ERRDEF(SVN_ERR_WC_LEFT_LOCAL_MOD,
\r
374 SVN_ERR_WC_CATEGORY_START + 12,
\r
375 "Left locally modified or unversioned files")
\r
377 SVN_ERRDEF(SVN_ERR_WC_SCHEDULE_CONFLICT,
\r
378 SVN_ERR_WC_CATEGORY_START + 13,
\r
379 "Unmergeable scheduling requested on an entry")
\r
381 SVN_ERRDEF(SVN_ERR_WC_PATH_FOUND,
\r
382 SVN_ERR_WC_CATEGORY_START + 14,
\r
383 "Found a working copy path")
\r
385 SVN_ERRDEF(SVN_ERR_WC_FOUND_CONFLICT,
\r
386 SVN_ERR_WC_CATEGORY_START + 15,
\r
387 "A conflict in the working copy obstructs the current operation")
\r
389 SVN_ERRDEF(SVN_ERR_WC_CORRUPT,
\r
390 SVN_ERR_WC_CATEGORY_START + 16,
\r
391 "Working copy is corrupt")
\r
393 SVN_ERRDEF(SVN_ERR_WC_CORRUPT_TEXT_BASE,
\r
394 SVN_ERR_WC_CATEGORY_START + 17,
\r
395 "Working copy text base is corrupt")
\r
397 SVN_ERRDEF(SVN_ERR_WC_NODE_KIND_CHANGE,
\r
398 SVN_ERR_WC_CATEGORY_START + 18,
\r
399 "Cannot change node kind")
\r
401 SVN_ERRDEF(SVN_ERR_WC_INVALID_OP_ON_CWD,
\r
402 SVN_ERR_WC_CATEGORY_START + 19,
\r
403 "Invalid operation on the current working directory")
\r
405 SVN_ERRDEF(SVN_ERR_WC_BAD_ADM_LOG_START,
\r
406 SVN_ERR_WC_CATEGORY_START + 20,
\r
407 "Problem on first log entry in a working copy")
\r
409 SVN_ERRDEF(SVN_ERR_WC_UNSUPPORTED_FORMAT,
\r
410 SVN_ERR_WC_CATEGORY_START + 21,
\r
411 "Unsupported working copy format")
\r
413 SVN_ERRDEF(SVN_ERR_WC_BAD_PATH,
\r
414 SVN_ERR_WC_CATEGORY_START + 22,
\r
415 "Path syntax not supported in this context")
\r
417 /** @since New in 1.2. */
\r
418 SVN_ERRDEF(SVN_ERR_WC_INVALID_SCHEDULE,
\r
419 SVN_ERR_WC_CATEGORY_START + 23,
\r
420 "Invalid schedule")
\r
422 /** @since New in 1.3. */
\r
423 SVN_ERRDEF(SVN_ERR_WC_INVALID_RELOCATION,
\r
424 SVN_ERR_WC_CATEGORY_START + 24,
\r
425 "Invalid relocation")
\r
427 /** @since New in 1.3. */
\r
428 SVN_ERRDEF(SVN_ERR_WC_INVALID_SWITCH,
\r
429 SVN_ERR_WC_CATEGORY_START + 25,
\r
432 /** @since New in 1.5. */
\r
433 SVN_ERRDEF(SVN_ERR_WC_MISMATCHED_CHANGELIST,
\r
434 SVN_ERR_WC_CATEGORY_START + 26,
\r
435 "Changelist doesn't match")
\r
437 /** @since New in 1.5. */
\r
438 SVN_ERRDEF(SVN_ERR_WC_CONFLICT_RESOLVER_FAILURE,
\r
439 SVN_ERR_WC_CATEGORY_START + 27,
\r
440 "Conflict resolution failed")
\r
442 SVN_ERRDEF(SVN_ERR_WC_COPYFROM_PATH_NOT_FOUND,
\r
443 SVN_ERR_WC_CATEGORY_START + 28,
\r
444 "Failed to locate 'copyfrom' path in working copy")
\r
446 /** @since New in 1.5. */
\r
447 SVN_ERRDEF(SVN_ERR_WC_CHANGELIST_MOVE,
\r
448 SVN_ERR_WC_CATEGORY_START + 29,
\r
449 "Moving a path from one changelist to another")
\r
451 /** @since New in 1.6. */
\r
452 SVN_ERRDEF(SVN_ERR_WC_CANNOT_DELETE_FILE_EXTERNAL,
\r
453 SVN_ERR_WC_CATEGORY_START + 30,
\r
454 "Cannot delete a file external")
\r
456 /** @since New in 1.6. */
\r
457 SVN_ERRDEF(SVN_ERR_WC_CANNOT_MOVE_FILE_EXTERNAL,
\r
458 SVN_ERR_WC_CATEGORY_START + 31,
\r
459 "Cannot move a file external")
\r
463 SVN_ERRDEF(SVN_ERR_FS_GENERAL,
\r
464 SVN_ERR_FS_CATEGORY_START + 0,
\r
465 "General filesystem error")
\r
467 SVN_ERRDEF(SVN_ERR_FS_CLEANUP,
\r
468 SVN_ERR_FS_CATEGORY_START + 1,
\r
469 "Error closing filesystem")
\r
471 SVN_ERRDEF(SVN_ERR_FS_ALREADY_OPEN,
\r
472 SVN_ERR_FS_CATEGORY_START + 2,
\r
473 "Filesystem is already open")
\r
475 SVN_ERRDEF(SVN_ERR_FS_NOT_OPEN,
\r
476 SVN_ERR_FS_CATEGORY_START + 3,
\r
477 "Filesystem is not open")
\r
479 SVN_ERRDEF(SVN_ERR_FS_CORRUPT,
\r
480 SVN_ERR_FS_CATEGORY_START + 4,
\r
481 "Filesystem is corrupt")
\r
483 SVN_ERRDEF(SVN_ERR_FS_PATH_SYNTAX,
\r
484 SVN_ERR_FS_CATEGORY_START + 5,
\r
485 "Invalid filesystem path syntax")
\r
487 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REVISION,
\r
488 SVN_ERR_FS_CATEGORY_START + 6,
\r
489 "Invalid filesystem revision number")
\r
491 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_TRANSACTION,
\r
492 SVN_ERR_FS_CATEGORY_START + 7,
\r
493 "Invalid filesystem transaction name")
\r
495 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_ENTRY,
\r
496 SVN_ERR_FS_CATEGORY_START + 8,
\r
497 "Filesystem directory has no such entry")
\r
499 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_REPRESENTATION,
\r
500 SVN_ERR_FS_CATEGORY_START + 9,
\r
501 "Filesystem has no such representation")
\r
503 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_STRING,
\r
504 SVN_ERR_FS_CATEGORY_START + 10,
\r
505 "Filesystem has no such string")
\r
507 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_COPY,
\r
508 SVN_ERR_FS_CATEGORY_START + 11,
\r
509 "Filesystem has no such copy")
\r
511 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
\r
512 SVN_ERR_FS_CATEGORY_START + 12,
\r
513 "The specified transaction is not mutable")
\r
515 SVN_ERRDEF(SVN_ERR_FS_NOT_FOUND,
\r
516 SVN_ERR_FS_CATEGORY_START + 13,
\r
517 "Filesystem has no item")
\r
519 SVN_ERRDEF(SVN_ERR_FS_ID_NOT_FOUND,
\r
520 SVN_ERR_FS_CATEGORY_START + 14,
\r
521 "Filesystem has no such node-rev-id")
\r
523 SVN_ERRDEF(SVN_ERR_FS_NOT_ID,
\r
524 SVN_ERR_FS_CATEGORY_START + 15,
\r
525 "String does not represent a node or node-rev-id")
\r
527 SVN_ERRDEF(SVN_ERR_FS_NOT_DIRECTORY,
\r
528 SVN_ERR_FS_CATEGORY_START + 16,
\r
529 "Name does not refer to a filesystem directory")
\r
531 SVN_ERRDEF(SVN_ERR_FS_NOT_FILE,
\r
532 SVN_ERR_FS_CATEGORY_START + 17,
\r
533 "Name does not refer to a filesystem file")
\r
535 SVN_ERRDEF(SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
\r
536 SVN_ERR_FS_CATEGORY_START + 18,
\r
537 "Name is not a single path component")
\r
539 SVN_ERRDEF(SVN_ERR_FS_NOT_MUTABLE,
\r
540 SVN_ERR_FS_CATEGORY_START + 19,
\r
541 "Attempt to change immutable filesystem node")
\r
543 SVN_ERRDEF(SVN_ERR_FS_ALREADY_EXISTS,
\r
544 SVN_ERR_FS_CATEGORY_START + 20,
\r
545 "Item already exists in filesystem")
\r
547 SVN_ERRDEF(SVN_ERR_FS_ROOT_DIR,
\r
548 SVN_ERR_FS_CATEGORY_START + 21,
\r
549 "Attempt to remove or recreate fs root dir")
\r
551 SVN_ERRDEF(SVN_ERR_FS_NOT_TXN_ROOT,
\r
552 SVN_ERR_FS_CATEGORY_START + 22,
\r
553 "Object is not a transaction root")
\r
555 SVN_ERRDEF(SVN_ERR_FS_NOT_REVISION_ROOT,
\r
556 SVN_ERR_FS_CATEGORY_START + 23,
\r
557 "Object is not a revision root")
\r
559 SVN_ERRDEF(SVN_ERR_FS_CONFLICT,
\r
560 SVN_ERR_FS_CATEGORY_START + 24,
\r
561 "Merge conflict during commit")
\r
563 SVN_ERRDEF(SVN_ERR_FS_REP_CHANGED,
\r
564 SVN_ERR_FS_CATEGORY_START + 25,
\r
565 "A representation vanished or changed between reads")
\r
567 SVN_ERRDEF(SVN_ERR_FS_REP_NOT_MUTABLE,
\r
568 SVN_ERR_FS_CATEGORY_START + 26,
\r
569 "Tried to change an immutable representation")
\r
571 SVN_ERRDEF(SVN_ERR_FS_MALFORMED_SKEL,
\r
572 SVN_ERR_FS_CATEGORY_START + 27,
\r
573 "Malformed skeleton data")
\r
575 SVN_ERRDEF(SVN_ERR_FS_TXN_OUT_OF_DATE,
\r
576 SVN_ERR_FS_CATEGORY_START + 28,
\r
577 "Transaction is out of date")
\r
579 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB,
\r
580 SVN_ERR_FS_CATEGORY_START + 29,
\r
581 "Berkeley DB error")
\r
583 SVN_ERRDEF(SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
\r
584 SVN_ERR_FS_CATEGORY_START + 30,
\r
585 "Berkeley DB deadlock error")
\r
587 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_DEAD,
\r
588 SVN_ERR_FS_CATEGORY_START + 31,
\r
589 "Transaction is dead")
\r
591 SVN_ERRDEF(SVN_ERR_FS_TRANSACTION_NOT_DEAD,
\r
592 SVN_ERR_FS_CATEGORY_START + 32,
\r
593 "Transaction is not dead")
\r
595 /** @since New in 1.1. */
\r
596 SVN_ERRDEF(SVN_ERR_FS_UNKNOWN_FS_TYPE,
\r
597 SVN_ERR_FS_CATEGORY_START + 33,
\r
600 /** @since New in 1.2. */
\r
601 SVN_ERRDEF(SVN_ERR_FS_NO_USER,
\r
602 SVN_ERR_FS_CATEGORY_START + 34,
\r
603 "No user associated with filesystem")
\r
605 /** @since New in 1.2. */
\r
606 SVN_ERRDEF(SVN_ERR_FS_PATH_ALREADY_LOCKED,
\r
607 SVN_ERR_FS_CATEGORY_START + 35,
\r
608 "Path is already locked")
\r
610 /** @since New in 1.2. */
\r
611 SVN_ERRDEF(SVN_ERR_FS_PATH_NOT_LOCKED,
\r
612 SVN_ERR_FS_CATEGORY_START + 36,
\r
613 "Path is not locked")
\r
615 /** @since New in 1.2. */
\r
616 SVN_ERRDEF(SVN_ERR_FS_BAD_LOCK_TOKEN,
\r
617 SVN_ERR_FS_CATEGORY_START + 37,
\r
618 "Lock token is incorrect")
\r
620 /** @since New in 1.2. */
\r
621 SVN_ERRDEF(SVN_ERR_FS_NO_LOCK_TOKEN,
\r
622 SVN_ERR_FS_CATEGORY_START + 38,
\r
623 "No lock token provided")
\r
625 /** @since New in 1.2. */
\r
626 SVN_ERRDEF(SVN_ERR_FS_LOCK_OWNER_MISMATCH,
\r
627 SVN_ERR_FS_CATEGORY_START + 39,
\r
628 "Username does not match lock owner")
\r
630 /** @since New in 1.2. */
\r
631 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_LOCK,
\r
632 SVN_ERR_FS_CATEGORY_START + 40,
\r
633 "Filesystem has no such lock")
\r
635 /** @since New in 1.2. */
\r
636 SVN_ERRDEF(SVN_ERR_FS_LOCK_EXPIRED,
\r
637 SVN_ERR_FS_CATEGORY_START + 41,
\r
638 "Lock has expired")
\r
640 /** @since New in 1.2. */
\r
641 SVN_ERRDEF(SVN_ERR_FS_OUT_OF_DATE,
\r
642 SVN_ERR_FS_CATEGORY_START + 42,
\r
643 "Item is out of date")
\r
645 /**@since New in 1.2.
\r
647 * This is analogous to SVN_ERR_REPOS_UNSUPPORTED_VERSION. To avoid
\r
648 * confusion with "versions" (i.e., releases) of Subversion, we've
\r
649 * started calling this the "format" number instead. The old
\r
650 * SVN_ERR_REPOS_UNSUPPORTED_VERSION error predates this and so
\r
651 * retains its name.
\r
653 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_FORMAT,
\r
654 SVN_ERR_FS_CATEGORY_START + 43,
\r
655 "Unsupported FS format")
\r
657 /** @since New in 1.5. */
\r
658 SVN_ERRDEF(SVN_ERR_FS_REP_BEING_WRITTEN,
\r
659 SVN_ERR_FS_CATEGORY_START + 44,
\r
660 "Representation is being written")
\r
662 /** @since New in 1.5. */
\r
663 SVN_ERRDEF(SVN_ERR_FS_TXN_NAME_TOO_LONG,
\r
664 SVN_ERR_FS_CATEGORY_START + 45,
\r
665 "The generated transaction name is too long")
\r
667 /** @since New in 1.5. */
\r
668 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_NODE_ORIGIN,
\r
669 SVN_ERR_FS_CATEGORY_START + 46,
\r
670 "Filesystem has no such node origin record")
\r
672 /** @since New in 1.5. */
\r
673 SVN_ERRDEF(SVN_ERR_FS_UNSUPPORTED_UPGRADE,
\r
674 SVN_ERR_FS_CATEGORY_START + 47,
\r
675 "Filesystem upgrade is not supported")
\r
677 /** @since New in 1.6. */
\r
678 SVN_ERRDEF(SVN_ERR_FS_NO_SUCH_CHECKSUM_REP,
\r
679 SVN_ERR_FS_CATEGORY_START + 48,
\r
680 "Filesystem has no such checksum-representation index record")
\r
684 SVN_ERRDEF(SVN_ERR_REPOS_LOCKED,
\r
685 SVN_ERR_REPOS_CATEGORY_START + 0,
\r
686 "The repository is locked, perhaps for db recovery")
\r
688 SVN_ERRDEF(SVN_ERR_REPOS_HOOK_FAILURE,
\r
689 SVN_ERR_REPOS_CATEGORY_START + 1,
\r
690 "A repository hook failed")
\r
692 SVN_ERRDEF(SVN_ERR_REPOS_BAD_ARGS,
\r
693 SVN_ERR_REPOS_CATEGORY_START + 2,
\r
694 "Incorrect arguments supplied")
\r
696 SVN_ERRDEF(SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
\r
697 SVN_ERR_REPOS_CATEGORY_START + 3,
\r
698 "A report cannot be generated because no data was supplied")
\r
700 SVN_ERRDEF(SVN_ERR_REPOS_BAD_REVISION_REPORT,
\r
701 SVN_ERR_REPOS_CATEGORY_START + 4,
\r
702 "Bogus revision report")
\r
704 /* This is analogous to SVN_ERR_FS_UNSUPPORTED_FORMAT. To avoid
\r
705 * confusion with "versions" (i.e., releases) of Subversion, we
\r
706 * started using the word "format" instead of "version". However,
\r
707 * this error code's name predates that decision.
\r
709 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_VERSION,
\r
710 SVN_ERR_REPOS_CATEGORY_START + 5,
\r
711 "Unsupported repository version")
\r
713 SVN_ERRDEF(SVN_ERR_REPOS_DISABLED_FEATURE,
\r
714 SVN_ERR_REPOS_CATEGORY_START + 6,
\r
715 "Disabled repository feature")
\r
717 SVN_ERRDEF(SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
\r
718 SVN_ERR_REPOS_CATEGORY_START + 7,
\r
719 "Error running post-commit hook")
\r
721 /** @since New in 1.2. */
\r
722 SVN_ERRDEF(SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED,
\r
723 SVN_ERR_REPOS_CATEGORY_START + 8,
\r
724 "Error running post-lock hook")
\r
726 /** @since New in 1.2. */
\r
727 SVN_ERRDEF(SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED,
\r
728 SVN_ERR_REPOS_CATEGORY_START + 9,
\r
729 "Error running post-unlock hook")
\r
731 /** @since New in 1.5. */
\r
732 SVN_ERRDEF(SVN_ERR_REPOS_UNSUPPORTED_UPGRADE,
\r
733 SVN_ERR_REPOS_CATEGORY_START + 10,
\r
734 "Repository upgrade is not supported")
\r
736 /* generic RA errors */
\r
738 SVN_ERRDEF(SVN_ERR_RA_ILLEGAL_URL,
\r
739 SVN_ERR_RA_CATEGORY_START + 0,
\r
740 "Bad URL passed to RA layer")
\r
742 SVN_ERRDEF(SVN_ERR_RA_NOT_AUTHORIZED,
\r
743 SVN_ERR_RA_CATEGORY_START + 1,
\r
744 "Authorization failed")
\r
746 SVN_ERRDEF(SVN_ERR_RA_UNKNOWN_AUTH,
\r
747 SVN_ERR_RA_CATEGORY_START + 2,
\r
748 "Unknown authorization method")
\r
750 SVN_ERRDEF(SVN_ERR_RA_NOT_IMPLEMENTED,
\r
751 SVN_ERR_RA_CATEGORY_START + 3,
\r
752 "Repository access method not implemented")
\r
754 SVN_ERRDEF(SVN_ERR_RA_OUT_OF_DATE,
\r
755 SVN_ERR_RA_CATEGORY_START + 4,
\r
756 "Item is out of date")
\r
758 SVN_ERRDEF(SVN_ERR_RA_NO_REPOS_UUID,
\r
759 SVN_ERR_RA_CATEGORY_START + 5,
\r
760 "Repository has no UUID")
\r
762 SVN_ERRDEF(SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
\r
763 SVN_ERR_RA_CATEGORY_START + 6,
\r
764 "Unsupported RA plugin ABI version")
\r
766 /** @since New in 1.2. */
\r
767 SVN_ERRDEF(SVN_ERR_RA_NOT_LOCKED,
\r
768 SVN_ERR_RA_CATEGORY_START + 7,
\r
769 "Path is not locked")
\r
771 /** @since New in 1.5. */
\r
772 SVN_ERRDEF(SVN_ERR_RA_PARTIAL_REPLAY_NOT_SUPPORTED,
\r
773 SVN_ERR_RA_CATEGORY_START + 8,
\r
774 "Server can only replay from the root of a repository")
\r
776 /** @since New in 1.5. */
\r
777 SVN_ERRDEF(SVN_ERR_RA_UUID_MISMATCH,
\r
778 SVN_ERR_RA_CATEGORY_START + 9,
\r
779 "Repository UUID does not match expected UUID")
\r
781 /** @since New in 1.6. */
\r
782 SVN_ERRDEF(SVN_ERR_RA_REPOS_ROOT_URL_MISMATCH,
\r
783 SVN_ERR_RA_CATEGORY_START + 10,
\r
784 "Repository root URL does not match expected root URL")
\r
786 /* ra_dav errors */
\r
788 SVN_ERRDEF(SVN_ERR_RA_DAV_SOCK_INIT,
\r
789 SVN_ERR_RA_DAV_CATEGORY_START + 0,
\r
790 "RA layer failed to init socket layer")
\r
792 SVN_ERRDEF(SVN_ERR_RA_DAV_CREATING_REQUEST,
\r
793 SVN_ERR_RA_DAV_CATEGORY_START + 1,
\r
794 "RA layer failed to create HTTP request")
\r
796 SVN_ERRDEF(SVN_ERR_RA_DAV_REQUEST_FAILED,
\r
797 SVN_ERR_RA_DAV_CATEGORY_START + 2,
\r
798 "RA layer request failed")
\r
800 SVN_ERRDEF(SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
\r
801 SVN_ERR_RA_DAV_CATEGORY_START + 3,
\r
802 "RA layer didn't receive requested OPTIONS info")
\r
804 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
\r
805 SVN_ERR_RA_DAV_CATEGORY_START + 4,
\r
806 "RA layer failed to fetch properties")
\r
808 SVN_ERRDEF(SVN_ERR_RA_DAV_ALREADY_EXISTS,
\r
809 SVN_ERR_RA_DAV_CATEGORY_START + 5,
\r
810 "RA layer file already exists")
\r
812 /** @deprecated To improve consistency between ra layers, this error code
\r
813 is replaced by SVN_ERR_BAD_CONFIG_VALUE.
\r
814 Slated for removal in the next major release. */
\r
815 SVN_ERRDEF(SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
\r
816 SVN_ERR_RA_DAV_CATEGORY_START + 6,
\r
817 "Invalid configuration value")
\r
819 /** @deprecated To improve consistency between ra layers, this error code
\r
820 is replaced in ra_{neon|serf} by SVN_ERR_FS_NOT_FOUND.
\r
821 Slated for removal in the next major release. */
\r
822 SVN_ERRDEF(SVN_ERR_RA_DAV_PATH_NOT_FOUND,
\r
823 SVN_ERR_RA_DAV_CATEGORY_START + 7,
\r
824 "HTTP Path Not Found")
\r
826 SVN_ERRDEF(SVN_ERR_RA_DAV_PROPPATCH_FAILED,
\r
827 SVN_ERR_RA_DAV_CATEGORY_START + 8,
\r
828 "Failed to execute WebDAV PROPPATCH")
\r
830 /** @since New in 1.2. */
\r
831 SVN_ERRDEF(SVN_ERR_RA_DAV_MALFORMED_DATA,
\r
832 SVN_ERR_RA_DAV_CATEGORY_START + 9,
\r
833 "Malformed network data")
\r
835 /** @since New in 1.3 */
\r
836 SVN_ERRDEF(SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS,
\r
837 SVN_ERR_RA_DAV_CATEGORY_START + 10,
\r
838 "Unable to extract data from response header")
\r
840 /** @since New in 1.5 */
\r
841 SVN_ERRDEF(SVN_ERR_RA_DAV_RELOCATED,
\r
842 SVN_ERR_RA_DAV_CATEGORY_START + 11,
\r
843 "Repository has been moved")
\r
845 /* SVN_ERR_RA_DAV_CATEGORY_START + 12 is reserved for use in 1.7. */
\r
847 /** @since New in 1.6 */
\r
848 SVN_ERRDEF(SVN_ERR_RA_DAV_FORBIDDEN,
\r
849 SVN_ERR_RA_DAV_CATEGORY_START + 13,
\r
850 "URL access forbidden for unknown reason")
\r
852 /* ra_local errors */
\r
854 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
\r
855 SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
\r
856 "Couldn't find a repository")
\r
858 SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
\r
859 SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
\r
860 "Couldn't open a repository")
\r
861 /* ra_svn errors */
\r
863 SVN_ERRDEF(SVN_ERR_RA_SVN_CMD_ERR,
\r
864 SVN_ERR_RA_SVN_CATEGORY_START + 0,
\r
865 "Special code for wrapping server errors to report to client")
\r
867 SVN_ERRDEF(SVN_ERR_RA_SVN_UNKNOWN_CMD,
\r
868 SVN_ERR_RA_SVN_CATEGORY_START + 1,
\r
869 "Unknown svn protocol command")
\r
871 SVN_ERRDEF(SVN_ERR_RA_SVN_CONNECTION_CLOSED,
\r
872 SVN_ERR_RA_SVN_CATEGORY_START + 2,
\r
873 "Network connection closed unexpectedly")
\r
875 SVN_ERRDEF(SVN_ERR_RA_SVN_IO_ERROR,
\r
876 SVN_ERR_RA_SVN_CATEGORY_START + 3,
\r
877 "Network read/write error")
\r
879 SVN_ERRDEF(SVN_ERR_RA_SVN_MALFORMED_DATA,
\r
880 SVN_ERR_RA_SVN_CATEGORY_START + 4,
\r
881 "Malformed network data")
\r
883 SVN_ERRDEF(SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
\r
884 SVN_ERR_RA_SVN_CATEGORY_START + 5,
\r
885 "Couldn't find a repository")
\r
887 SVN_ERRDEF(SVN_ERR_RA_SVN_BAD_VERSION,
\r
888 SVN_ERR_RA_SVN_CATEGORY_START + 6,
\r
889 "Client/server version mismatch")
\r
891 /** @since New in 1.5. */
\r
892 SVN_ERRDEF(SVN_ERR_RA_SVN_NO_MECHANISMS,
\r
893 SVN_ERR_RA_SVN_CATEGORY_START + 7,
\r
894 "Cannot negotiate authentication mechanism")
\r
896 /* libsvn_ra_serf errors */
\r
897 /** @since New in 1.5. */
\r
898 SVN_ERRDEF(SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED,
\r
899 SVN_ERR_RA_SERF_CATEGORY_START + 0,
\r
900 "Initialization of SSPI library failed")
\r
901 /** @since New in 1.5. */
\r
902 SVN_ERRDEF(SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED,
\r
903 SVN_ERR_RA_SERF_CATEGORY_START + 1,
\r
904 "Server SSL certificate untrusted")
\r
906 /* libsvn_auth errors */
\r
908 /* this error can be used when an auth provider doesn't have
\r
909 the creds, but no other "real" error occurred. */
\r
910 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
\r
911 SVN_ERR_AUTHN_CATEGORY_START + 0,
\r
912 "Credential data unavailable")
\r
914 SVN_ERRDEF(SVN_ERR_AUTHN_NO_PROVIDER,
\r
915 SVN_ERR_AUTHN_CATEGORY_START + 1,
\r
916 "No authentication provider available")
\r
918 SVN_ERRDEF(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
\r
919 SVN_ERR_AUTHN_CATEGORY_START + 2,
\r
920 "All authentication providers exhausted")
\r
922 SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_NOT_SAVED,
\r
923 SVN_ERR_AUTHN_CATEGORY_START + 3,
\r
924 "Credentials not saved")
\r
926 /** @since New in 1.5. */
\r
927 SVN_ERRDEF(SVN_ERR_AUTHN_FAILED,
\r
928 SVN_ERR_AUTHN_CATEGORY_START + 4,
\r
929 "Authentication failed")
\r
931 /* authorization errors */
\r
933 SVN_ERRDEF(SVN_ERR_AUTHZ_ROOT_UNREADABLE,
\r
934 SVN_ERR_AUTHZ_CATEGORY_START + 0,
\r
935 "Read access denied for root of edit")
\r
937 /** @since New in 1.1. */
\r
938 SVN_ERRDEF(SVN_ERR_AUTHZ_UNREADABLE,
\r
939 SVN_ERR_AUTHZ_CATEGORY_START + 1,
\r
940 "Item is not readable")
\r
942 /** @since New in 1.1. */
\r
943 SVN_ERRDEF(SVN_ERR_AUTHZ_PARTIALLY_READABLE,
\r
944 SVN_ERR_AUTHZ_CATEGORY_START + 2,
\r
945 "Item is partially readable")
\r
947 SVN_ERRDEF(SVN_ERR_AUTHZ_INVALID_CONFIG,
\r
948 SVN_ERR_AUTHZ_CATEGORY_START + 3,
\r
949 "Invalid authz configuration")
\r
951 /** @since New in 1.3 */
\r
952 SVN_ERRDEF(SVN_ERR_AUTHZ_UNWRITABLE,
\r
953 SVN_ERR_AUTHZ_CATEGORY_START + 4,
\r
954 "Item is not writable")
\r
956 /* svndiff errors */
\r
958 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_HEADER,
\r
959 SVN_ERR_SVNDIFF_CATEGORY_START + 0,
\r
960 "Svndiff data has invalid header")
\r
962 SVN_ERRDEF(SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
\r
963 SVN_ERR_SVNDIFF_CATEGORY_START + 1,
\r
964 "Svndiff data contains corrupt window")
\r
966 SVN_ERRDEF(SVN_ERR_SVNDIFF_BACKWARD_VIEW,
\r
967 SVN_ERR_SVNDIFF_CATEGORY_START + 2,
\r
968 "Svndiff data contains backward-sliding source view")
\r
970 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_OPS,
\r
971 SVN_ERR_SVNDIFF_CATEGORY_START + 3,
\r
972 "Svndiff data contains invalid instruction")
\r
974 SVN_ERRDEF(SVN_ERR_SVNDIFF_UNEXPECTED_END,
\r
975 SVN_ERR_SVNDIFF_CATEGORY_START + 4,
\r
976 "Svndiff data ends unexpectedly")
\r
978 SVN_ERRDEF(SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA,
\r
979 SVN_ERR_SVNDIFF_CATEGORY_START + 5,
\r
980 "Svndiff compressed data is invalid")
\r
982 /* libsvn_diff errors */
\r
984 SVN_ERRDEF(SVN_ERR_DIFF_DATASOURCE_MODIFIED,
\r
985 SVN_ERR_DIFF_CATEGORY_START + 0,
\r
986 "Diff data source modified unexpectedly")
\r
988 /* mod_dav_svn errors */
\r
990 SVN_ERRDEF(SVN_ERR_APMOD_MISSING_PATH_TO_FS,
\r
991 SVN_ERR_APMOD_CATEGORY_START + 0,
\r
992 "Apache has no path to an SVN filesystem")
\r
994 SVN_ERRDEF(SVN_ERR_APMOD_MALFORMED_URI,
\r
995 SVN_ERR_APMOD_CATEGORY_START + 1,
\r
996 "Apache got a malformed URI")
\r
998 SVN_ERRDEF(SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
\r
999 SVN_ERR_APMOD_CATEGORY_START + 2,
\r
1000 "Activity not found")
\r
1002 SVN_ERRDEF(SVN_ERR_APMOD_BAD_BASELINE,
\r
1003 SVN_ERR_APMOD_CATEGORY_START + 3,
\r
1004 "Baseline incorrect")
\r
1006 SVN_ERRDEF(SVN_ERR_APMOD_CONNECTION_ABORTED,
\r
1007 SVN_ERR_APMOD_CATEGORY_START + 4,
\r
1008 "Input/output error")
\r
1010 /* libsvn_client errors */
\r
1012 SVN_ERRDEF(SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
\r
1013 SVN_ERR_CLIENT_CATEGORY_START + 0,
\r
1014 "A path under version control is needed for this operation")
\r
1016 SVN_ERRDEF(SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
\r
1017 SVN_ERR_CLIENT_CATEGORY_START + 1,
\r
1018 "Repository access is needed for this operation")
\r
1020 SVN_ERRDEF(SVN_ERR_CLIENT_BAD_REVISION,
\r
1021 SVN_ERR_CLIENT_CATEGORY_START + 2,
\r
1022 "Bogus revision information given")
\r
1024 SVN_ERRDEF(SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
\r
1025 SVN_ERR_CLIENT_CATEGORY_START + 3,
\r
1026 "Attempting to commit to a URL more than once")
\r
1028 SVN_ERRDEF(SVN_ERR_CLIENT_IS_BINARY_FILE,
\r
1029 SVN_ERR_CLIENT_CATEGORY_START + 4,
\r
1030 "Operation does not apply to binary file")
\r
1032 /*### SVN_PROP_EXTERNALS needed to be replaced with "svn:externals"
\r
1033 in order to get gettext translatable strings */
\r
1034 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
\r
1035 SVN_ERR_CLIENT_CATEGORY_START + 5,
\r
1036 "Format of an svn:externals property was invalid")
\r
1038 SVN_ERRDEF(SVN_ERR_CLIENT_MODIFIED,
\r
1039 SVN_ERR_CLIENT_CATEGORY_START + 6,
\r
1040 "Attempting restricted operation for modified resource")
\r
1042 SVN_ERRDEF(SVN_ERR_CLIENT_IS_DIRECTORY,
\r
1043 SVN_ERR_CLIENT_CATEGORY_START + 7,
\r
1044 "Operation does not apply to directory")
\r
1046 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_RANGE,
\r
1047 SVN_ERR_CLIENT_CATEGORY_START + 8,
\r
1048 "Revision range is not allowed")
\r
1050 SVN_ERRDEF(SVN_ERR_CLIENT_INVALID_RELOCATION,
\r
1051 SVN_ERR_CLIENT_CATEGORY_START + 9,
\r
1052 "Inter-repository relocation not allowed")
\r
1054 SVN_ERRDEF(SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
\r
1055 SVN_ERR_CLIENT_CATEGORY_START + 10,
\r
1056 "Author name cannot contain a newline")
\r
1058 SVN_ERRDEF(SVN_ERR_CLIENT_PROPERTY_NAME,
\r
1059 SVN_ERR_CLIENT_CATEGORY_START + 11,
\r
1060 "Bad property name")
\r
1062 /** @since New in 1.1. */
\r
1063 SVN_ERRDEF(SVN_ERR_CLIENT_UNRELATED_RESOURCES,
\r
1064 SVN_ERR_CLIENT_CATEGORY_START + 12,
\r
1065 "Two versioned resources are unrelated")
\r
1067 /** @since New in 1.2. */
\r
1068 SVN_ERRDEF(SVN_ERR_CLIENT_MISSING_LOCK_TOKEN,
\r
1069 SVN_ERR_CLIENT_CATEGORY_START + 13,
\r
1070 "Path has no lock token")
\r
1072 /** @since New in 1.5. */
\r
1073 SVN_ERRDEF(SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED,
\r
1074 SVN_ERR_CLIENT_CATEGORY_START + 14,
\r
1075 "Operation does not support multiple sources")
\r
1077 /** @since New in 1.5. */
\r
1078 SVN_ERRDEF(SVN_ERR_CLIENT_NO_VERSIONED_PARENT,
\r
1079 SVN_ERR_CLIENT_CATEGORY_START + 15,
\r
1080 "No versioned parent directories")
\r
1082 /** @since New in 1.5. */
\r
1083 SVN_ERRDEF(SVN_ERR_CLIENT_NOT_READY_TO_MERGE,
\r
1084 SVN_ERR_CLIENT_CATEGORY_START + 16,
\r
1085 "Working copy and merge source not ready for reintegration")
\r
1087 /** @since New in 1.6. */
\r
1088 SVN_ERRDEF(SVN_ERR_CLIENT_FILE_EXTERNAL_OVERWRITE_VERSIONED,
\r
1089 SVN_ERR_CLIENT_CATEGORY_START + 17,
\r
1090 "A file external cannot overwrite an existing versioned item")
\r
1094 SVN_ERRDEF(SVN_ERR_BASE,
\r
1095 SVN_ERR_MISC_CATEGORY_START + 0,
\r
1096 "A problem occurred; see other errors for details")
\r
1098 SVN_ERRDEF(SVN_ERR_PLUGIN_LOAD_FAILURE,
\r
1099 SVN_ERR_MISC_CATEGORY_START + 1,
\r
1100 "Failure loading plugin")
\r
1102 SVN_ERRDEF(SVN_ERR_MALFORMED_FILE,
\r
1103 SVN_ERR_MISC_CATEGORY_START + 2,
\r
1106 SVN_ERRDEF(SVN_ERR_INCOMPLETE_DATA,
\r
1107 SVN_ERR_MISC_CATEGORY_START + 3,
\r
1108 "Incomplete data")
\r
1110 SVN_ERRDEF(SVN_ERR_INCORRECT_PARAMS,
\r
1111 SVN_ERR_MISC_CATEGORY_START + 4,
\r
1112 "Incorrect parameters given")
\r
1114 SVN_ERRDEF(SVN_ERR_UNVERSIONED_RESOURCE,
\r
1115 SVN_ERR_MISC_CATEGORY_START + 5,
\r
1116 "Tried a versioning operation on an unversioned resource")
\r
1118 SVN_ERRDEF(SVN_ERR_TEST_FAILED,
\r
1119 SVN_ERR_MISC_CATEGORY_START + 6,
\r
1122 SVN_ERRDEF(SVN_ERR_UNSUPPORTED_FEATURE,
\r
1123 SVN_ERR_MISC_CATEGORY_START + 7,
\r
1124 "Trying to use an unsupported feature")
\r
1126 SVN_ERRDEF(SVN_ERR_BAD_PROP_KIND,
\r
1127 SVN_ERR_MISC_CATEGORY_START + 8,
\r
1128 "Unexpected or unknown property kind")
\r
1130 SVN_ERRDEF(SVN_ERR_ILLEGAL_TARGET,
\r
1131 SVN_ERR_MISC_CATEGORY_START + 9,
\r
1132 "Illegal target for the requested operation")
\r
1134 SVN_ERRDEF(SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
\r
1135 SVN_ERR_MISC_CATEGORY_START + 10,
\r
1136 "MD5 checksum is missing")
\r
1138 SVN_ERRDEF(SVN_ERR_DIR_NOT_EMPTY,
\r
1139 SVN_ERR_MISC_CATEGORY_START + 11,
\r
1140 "Directory needs to be empty but is not")
\r
1142 SVN_ERRDEF(SVN_ERR_EXTERNAL_PROGRAM,
\r
1143 SVN_ERR_MISC_CATEGORY_START + 12,
\r
1144 "Error calling external program")
\r
1146 SVN_ERRDEF(SVN_ERR_SWIG_PY_EXCEPTION_SET,
\r
1147 SVN_ERR_MISC_CATEGORY_START + 13,
\r
1148 "Python exception has been set with the error")
\r
1150 SVN_ERRDEF(SVN_ERR_CHECKSUM_MISMATCH,
\r
1151 SVN_ERR_MISC_CATEGORY_START + 14,
\r
1152 "A checksum mismatch occurred")
\r
1154 SVN_ERRDEF(SVN_ERR_CANCELLED,
\r
1155 SVN_ERR_MISC_CATEGORY_START + 15,
\r
1156 "The operation was interrupted")
\r
1158 SVN_ERRDEF(SVN_ERR_INVALID_DIFF_OPTION,
\r
1159 SVN_ERR_MISC_CATEGORY_START + 16,
\r
1160 "The specified diff option is not supported")
\r
1162 SVN_ERRDEF(SVN_ERR_PROPERTY_NOT_FOUND,
\r
1163 SVN_ERR_MISC_CATEGORY_START + 17,
\r
1164 "Property not found")
\r
1166 SVN_ERRDEF(SVN_ERR_NO_AUTH_FILE_PATH,
\r
1167 SVN_ERR_MISC_CATEGORY_START + 18,
\r
1168 "No auth file path available")
\r
1170 /** @since New in 1.1. */
\r
1171 SVN_ERRDEF(SVN_ERR_VERSION_MISMATCH,
\r
1172 SVN_ERR_MISC_CATEGORY_START + 19,
\r
1173 "Incompatible library version")
\r
1175 /** @since New in 1.5. */
\r
1176 SVN_ERRDEF(SVN_ERR_MERGEINFO_PARSE_ERROR,
\r
1177 SVN_ERR_MISC_CATEGORY_START + 20,
\r
1178 "Mergeinfo parse error")
\r
1180 /** @since New in 1.5. */
\r
1181 SVN_ERRDEF(SVN_ERR_CEASE_INVOCATION,
\r
1182 SVN_ERR_MISC_CATEGORY_START + 21,
\r
1183 "Cease invocation of this API")
\r
1185 /** @since New in 1.5. */
\r
1186 SVN_ERRDEF(SVN_ERR_REVNUM_PARSE_FAILURE,
\r
1187 SVN_ERR_MISC_CATEGORY_START + 22,
\r
1188 "Error parsing revision number")
\r
1190 /** @since New in 1.5. */
\r
1191 SVN_ERRDEF(SVN_ERR_ITER_BREAK,
\r
1192 SVN_ERR_MISC_CATEGORY_START + 23,
\r
1193 "Iteration terminated before completion")
\r
1195 /** @since New in 1.5. */
\r
1196 SVN_ERRDEF(SVN_ERR_UNKNOWN_CHANGELIST,
\r
1197 SVN_ERR_MISC_CATEGORY_START + 24,
\r
1198 "Unknown changelist")
\r
1200 /** @since New in 1.5. */
\r
1201 SVN_ERRDEF(SVN_ERR_RESERVED_FILENAME_SPECIFIED,
\r
1202 SVN_ERR_MISC_CATEGORY_START + 25,
\r
1203 "Reserved directory name in command line arguments")
\r
1205 /** @since New in 1.5. */
\r
1206 SVN_ERRDEF(SVN_ERR_UNKNOWN_CAPABILITY,
\r
1207 SVN_ERR_MISC_CATEGORY_START + 26,
\r
1208 "Inquiry about unknown capability")
\r
1210 /** @since New in 1.6. */
\r
1211 SVN_ERRDEF(SVN_ERR_TEST_SKIPPED,
\r
1212 SVN_ERR_MISC_CATEGORY_START + 27,
\r
1215 /** @since New in 1.6. */
\r
1216 SVN_ERRDEF(SVN_ERR_NO_APR_MEMCACHE,
\r
1217 SVN_ERR_MISC_CATEGORY_START + 28,
\r
1218 "apr memcache library not available")
\r
1220 /** @since New in 1.6. */
\r
1221 SVN_ERRDEF(SVN_ERR_ATOMIC_INIT_FAILURE,
\r
1222 SVN_ERR_MISC_CATEGORY_START + 29,
\r
1223 "Couldn't perform atomic initialization")
\r
1225 /** @since New in 1.6. */
\r
1226 SVN_ERRDEF(SVN_ERR_SQLITE_ERROR,
\r
1227 SVN_ERR_MISC_CATEGORY_START + 30,
\r
1230 /** @since New in 1.6. */
\r
1231 SVN_ERRDEF(SVN_ERR_SQLITE_READONLY,
\r
1232 SVN_ERR_MISC_CATEGORY_START + 31,
\r
1233 "Attempted to write to readonly SQLite db")
\r
1235 /** @since New in 1.6. */
\r
1236 SVN_ERRDEF(SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA,
\r
1237 SVN_ERR_MISC_CATEGORY_START + 32,
\r
1238 "Unsupported schema found in SQLite db")
\r
1240 /* command-line client errors */
\r
1242 SVN_ERRDEF(SVN_ERR_CL_ARG_PARSING_ERROR,
\r
1243 SVN_ERR_CL_CATEGORY_START + 0,
\r
1244 "Error parsing arguments")
\r
1246 SVN_ERRDEF(SVN_ERR_CL_INSUFFICIENT_ARGS,
\r
1247 SVN_ERR_CL_CATEGORY_START + 1,
\r
1248 "Not enough arguments provided")
\r
1250 SVN_ERRDEF(SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
\r
1251 SVN_ERR_CL_CATEGORY_START + 2,
\r
1252 "Mutually exclusive arguments specified")
\r
1254 SVN_ERRDEF(SVN_ERR_CL_ADM_DIR_RESERVED,
\r
1255 SVN_ERR_CL_CATEGORY_START + 3,
\r
1256 "Attempted command in administrative dir")
\r
1258 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
\r
1259 SVN_ERR_CL_CATEGORY_START + 4,
\r
1260 "The log message file is under version control")
\r
1262 SVN_ERRDEF(SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
\r
1263 SVN_ERR_CL_CATEGORY_START + 5,
\r
1264 "The log message is a pathname")
\r
1266 SVN_ERRDEF(SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
\r
1267 SVN_ERR_CL_CATEGORY_START + 6,
\r
1268 "Committing in directory scheduled for addition")
\r
1270 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_EDITOR,
\r
1271 SVN_ERR_CL_CATEGORY_START + 7,
\r
1272 "No external editor available")
\r
1274 SVN_ERRDEF(SVN_ERR_CL_BAD_LOG_MESSAGE,
\r
1275 SVN_ERR_CL_CATEGORY_START + 8,
\r
1276 "Something is wrong with the log message's contents")
\r
1278 SVN_ERRDEF(SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE,
\r
1279 SVN_ERR_CL_CATEGORY_START + 9,
\r
1280 "A log message was given where none was necessary")
\r
1282 SVN_ERRDEF(SVN_ERR_CL_NO_EXTERNAL_MERGE_TOOL,
\r
1283 SVN_ERR_CL_CATEGORY_START + 10,
\r
1284 "No external merge tool available")
\r
1286 /* malfunctions such as assertion failures */
\r
1288 SVN_ERRDEF(SVN_ERR_ASSERTION_FAIL,
\r
1289 SVN_ERR_MALFUNC_CATEGORY_START + 0,
\r
1290 "Assertion failure")
\r
1295 #undef SVN_ERROR_START
\r
1297 #undef SVN_ERROR_END
\r
1299 #ifdef __cplusplus
\r
1301 #endif /* __cplusplus */
\r
1303 #endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */
\r