3
* ====================================================================
4
* Copyright (c) 2000-2004 CollabNet. All rights reserved.
6
* This software is licensed as described in the file COPYING, which
7
* you should have received as part of this distribution. The terms
8
* are also available at http://subversion.tigris.org/license-1.html.
9
* If newer versions of this license are posted there, you may use a
10
* newer version instead, at your option.
12
* This software consists of voluntary contributions made by many
13
* individuals. For exact contribution history, see the revision
14
* history and logs, available at http://subversion.tigris.org/.
15
* ====================================================================
18
* @file svn_error_codes.h
19
* @brief Subversion error codes.
22
/* What's going on here?
24
In order to define error codes and their associated description
25
strings in the same place, we overload the SVN_ERRDEF() macro with
26
two definitions below. Both take two arguments, an error code name
27
and a description string. One definition of the macro just throws
28
away the string and defines enumeration constants using the error
29
code names -- that definition is used by the header file that
30
exports error codes to the rest of Subversion. The other
31
definition creates a static table mapping the enum codes to their
32
corresponding strings -- that definition is used by the C file that
33
implements svn_strerror().
35
The header and C files both include this file, using #defines to
36
control which version of the macro they get.
40
/* Process this file if we're building an error array, or if we have
41
not defined the enumerated constants yet. */
42
#if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED)
46
#include <apr_errno.h> /* APR's error system */
48
#include "svn_props.h" /* For SVN_PROP_EXTERNALS. */
52
#endif /* __cplusplus */
54
#ifndef DOXYGEN_SHOULD_SKIP_THIS
56
#if defined(SVN_ERROR_BUILD_ARRAY)
58
#define SVN_ERROR_START \
59
static const err_defn error_table[] = { \
60
{ SVN_WARNING, "Warning" },
61
#define SVN_ERRDEF(num, offset, str) { num, str },
62
#define SVN_ERROR_END { 0, NULL } };
64
#elif !defined(SVN_ERROR_ENUM_DEFINED)
66
#define SVN_ERROR_START \
67
typedef enum svn_errno_t { \
68
SVN_WARNING = APR_OS_START_USERERR + 1,
69
#define SVN_ERRDEF(num, offset, str) /** str */ num = offset,
70
#define SVN_ERROR_END SVN_ERR_LAST } svn_errno_t;
72
#define SVN_ERROR_ENUM_DEFINED
76
/* Define custom Subversion error numbers, in the range reserved for
77
that in APR: from APR_OS_START_USERERR to APR_OS_START_SYSERR (see
80
Error numbers are divided into categories of up to 5000 errors
81
each. Since we're dividing up the APR user error space, which has
82
room for 500,000 errors, we can have up to 100 categories.
83
Categories are fixed-size; if a category has fewer than 5000
84
errors, then it just ends with a range of unused numbers.
86
To maintain binary compatibility, please observe these guidelines:
88
- When adding a new error, always add on the end of the
89
appropriate category, so that the real values of existing
90
errors are not changed.
92
- When deleting an error, leave a placeholder comment indicating
93
the offset, again so that the values of other errors are not
97
#define SVN_ERR_CATEGORY_SIZE 5000
99
/* Leave one category of room at the beginning, for SVN_WARNING and
100
any other such beasts we might create in the future. */
101
#define SVN_ERR_BAD_CATEGORY_START (APR_OS_START_USERERR \
102
+ ( 1 * SVN_ERR_CATEGORY_SIZE))
103
#define SVN_ERR_XML_CATEGORY_START (APR_OS_START_USERERR \
104
+ ( 2 * SVN_ERR_CATEGORY_SIZE))
105
#define SVN_ERR_IO_CATEGORY_START (APR_OS_START_USERERR \
106
+ ( 3 * SVN_ERR_CATEGORY_SIZE))
107
#define SVN_ERR_STREAM_CATEGORY_START (APR_OS_START_USERERR \
108
+ ( 4 * SVN_ERR_CATEGORY_SIZE))
109
#define SVN_ERR_NODE_CATEGORY_START (APR_OS_START_USERERR \
110
+ ( 5 * SVN_ERR_CATEGORY_SIZE))
111
#define SVN_ERR_ENTRY_CATEGORY_START (APR_OS_START_USERERR \
112
+ ( 6 * SVN_ERR_CATEGORY_SIZE))
113
#define SVN_ERR_WC_CATEGORY_START (APR_OS_START_USERERR \
114
+ ( 7 * SVN_ERR_CATEGORY_SIZE))
115
#define SVN_ERR_FS_CATEGORY_START (APR_OS_START_USERERR \
116
+ ( 8 * SVN_ERR_CATEGORY_SIZE))
117
#define SVN_ERR_REPOS_CATEGORY_START (APR_OS_START_USERERR \
118
+ ( 9 * SVN_ERR_CATEGORY_SIZE))
119
#define SVN_ERR_RA_CATEGORY_START (APR_OS_START_USERERR \
120
+ (10 * SVN_ERR_CATEGORY_SIZE))
121
#define SVN_ERR_RA_DAV_CATEGORY_START (APR_OS_START_USERERR \
122
+ (11 * SVN_ERR_CATEGORY_SIZE))
123
#define SVN_ERR_RA_LOCAL_CATEGORY_START (APR_OS_START_USERERR \
124
+ (12 * SVN_ERR_CATEGORY_SIZE))
125
#define SVN_ERR_SVNDIFF_CATEGORY_START (APR_OS_START_USERERR \
126
+ (13 * SVN_ERR_CATEGORY_SIZE))
127
#define SVN_ERR_APMOD_CATEGORY_START (APR_OS_START_USERERR \
128
+ (14 * SVN_ERR_CATEGORY_SIZE))
129
#define SVN_ERR_CLIENT_CATEGORY_START (APR_OS_START_USERERR \
130
+ (15 * SVN_ERR_CATEGORY_SIZE))
131
#define SVN_ERR_MISC_CATEGORY_START (APR_OS_START_USERERR \
132
+ (16 * SVN_ERR_CATEGORY_SIZE))
133
#define SVN_ERR_CL_CATEGORY_START (APR_OS_START_USERERR \
134
+ (17 * SVN_ERR_CATEGORY_SIZE))
135
#define SVN_ERR_RA_SVN_CATEGORY_START (APR_OS_START_USERERR \
136
+ (18 * SVN_ERR_CATEGORY_SIZE))
137
#define SVN_ERR_AUTHN_CATEGORY_START (APR_OS_START_USERERR \
138
+ (19 * SVN_ERR_CATEGORY_SIZE))
139
#define SVN_ERR_AUTHZ_CATEGORY_START (APR_OS_START_USERERR \
140
+ (20 * SVN_ERR_CATEGORY_SIZE))
142
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
144
/** Collection of Subversion error code values, located within the
145
* APR user error space. */
148
/* validation ("BAD_FOO") errors */
150
SVN_ERRDEF (SVN_ERR_BAD_CONTAINING_POOL,
151
SVN_ERR_BAD_CATEGORY_START + 0,
152
"Bad parent pool passed to svn_make_pool()")
154
SVN_ERRDEF (SVN_ERR_BAD_FILENAME,
155
SVN_ERR_BAD_CATEGORY_START + 1,
158
SVN_ERRDEF (SVN_ERR_BAD_URL,
159
SVN_ERR_BAD_CATEGORY_START + 2,
162
SVN_ERRDEF (SVN_ERR_BAD_DATE,
163
SVN_ERR_BAD_CATEGORY_START + 3,
166
SVN_ERRDEF (SVN_ERR_BAD_MIME_TYPE,
167
SVN_ERR_BAD_CATEGORY_START + 4,
170
/* UNUSED error slot: + 5 */
172
SVN_ERRDEF (SVN_ERR_BAD_VERSION_FILE_FORMAT,
173
SVN_ERR_BAD_CATEGORY_START + 6,
174
"Version file format not correct")
178
SVN_ERRDEF (SVN_ERR_XML_ATTRIB_NOT_FOUND,
179
SVN_ERR_XML_CATEGORY_START + 0,
180
"No such XML tag attribute")
182
SVN_ERRDEF (SVN_ERR_XML_MISSING_ANCESTRY,
183
SVN_ERR_XML_CATEGORY_START + 1,
184
"<delta-pkg> is missing ancestry")
186
SVN_ERRDEF (SVN_ERR_XML_UNKNOWN_ENCODING,
187
SVN_ERR_XML_CATEGORY_START + 2,
188
"Unrecognized binary data encoding; can't decode")
190
SVN_ERRDEF (SVN_ERR_XML_MALFORMED,
191
SVN_ERR_XML_CATEGORY_START + 3,
192
"XML data was not well-formed")
194
SVN_ERRDEF (SVN_ERR_XML_UNESCAPABLE_DATA,
195
SVN_ERR_XML_CATEGORY_START + 4,
196
"Data cannot be safely XML-escaped")
200
SVN_ERRDEF (SVN_ERR_IO_INCONSISTENT_EOL,
201
SVN_ERR_IO_CATEGORY_START + 0,
202
"Inconsistent line ending style")
204
SVN_ERRDEF (SVN_ERR_IO_UNKNOWN_EOL,
205
SVN_ERR_IO_CATEGORY_START + 1,
206
"Unrecognized line ending style")
208
/* @deprecated Unused, slated for removal in the next major release. */
209
SVN_ERRDEF (SVN_ERR_IO_CORRUPT_EOL,
210
SVN_ERR_IO_CATEGORY_START + 2,
211
"Line endings other than expected")
213
SVN_ERRDEF (SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
214
SVN_ERR_IO_CATEGORY_START + 3,
215
"Ran out of unique names")
217
/* @deprecated Unused, slated for removal in the next major release. */
218
SVN_ERRDEF (SVN_ERR_IO_PIPE_FRAME_ERROR,
219
SVN_ERR_IO_CATEGORY_START + 4,
220
"Framing error in pipe protocol")
222
/* @deprecated Unused, slated for removal in the next major release. */
223
SVN_ERRDEF (SVN_ERR_IO_PIPE_READ_ERROR,
224
SVN_ERR_IO_CATEGORY_START + 5,
225
"Read error in pipe")
227
SVN_ERRDEF (SVN_ERR_IO_WRITE_ERROR,
228
SVN_ERR_IO_CATEGORY_START + 6,
233
SVN_ERRDEF (SVN_ERR_STREAM_UNEXPECTED_EOF,
234
SVN_ERR_STREAM_CATEGORY_START + 0,
235
"Unexpected EOF on stream")
237
SVN_ERRDEF (SVN_ERR_STREAM_MALFORMED_DATA,
238
SVN_ERR_STREAM_CATEGORY_START + 1,
239
"Malformed stream data")
241
SVN_ERRDEF (SVN_ERR_STREAM_UNRECOGNIZED_DATA,
242
SVN_ERR_STREAM_CATEGORY_START + 2,
243
"Unrecognized stream data")
247
SVN_ERRDEF (SVN_ERR_NODE_UNKNOWN_KIND,
248
SVN_ERR_NODE_CATEGORY_START + 0,
249
"Unknown svn_node_kind")
251
SVN_ERRDEF (SVN_ERR_NODE_UNEXPECTED_KIND,
252
SVN_ERR_NODE_CATEGORY_START + 1,
253
"Unexpected node kind found")
257
SVN_ERRDEF (SVN_ERR_ENTRY_NOT_FOUND,
258
SVN_ERR_ENTRY_CATEGORY_START + 0,
259
"Can't find an entry")
261
/* UNUSED error slot: + 1 */
263
SVN_ERRDEF (SVN_ERR_ENTRY_EXISTS,
264
SVN_ERR_ENTRY_CATEGORY_START + 2,
265
"Entry already exists")
267
SVN_ERRDEF (SVN_ERR_ENTRY_MISSING_REVISION,
268
SVN_ERR_ENTRY_CATEGORY_START + 3,
269
"Entry has no revision")
271
SVN_ERRDEF (SVN_ERR_ENTRY_MISSING_URL,
272
SVN_ERR_ENTRY_CATEGORY_START + 4,
275
SVN_ERRDEF (SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
276
SVN_ERR_ENTRY_CATEGORY_START + 5,
277
"Entry has an invalid attribute")
281
SVN_ERRDEF (SVN_ERR_WC_OBSTRUCTED_UPDATE,
282
SVN_ERR_WC_CATEGORY_START + 0,
285
/* @deprecated Unused, slated for removal in the next major release. */
286
SVN_ERRDEF (SVN_ERR_WC_UNWIND_MISMATCH,
287
SVN_ERR_WC_CATEGORY_START + 1,
288
"Mismatch popping the WC unwind stack")
290
/* @deprecated Unused, slated for removal in the next major release. */
291
SVN_ERRDEF (SVN_ERR_WC_UNWIND_EMPTY,
292
SVN_ERR_WC_CATEGORY_START + 2,
293
"Attempt to pop empty WC unwind stack")
295
/* @deprecated Unused, slated for removal in the next major release. */
296
SVN_ERRDEF (SVN_ERR_WC_UNWIND_NOT_EMPTY,
297
SVN_ERR_WC_CATEGORY_START + 3,
298
"Attempt to unlock with non-empty unwind stack")
300
SVN_ERRDEF (SVN_ERR_WC_LOCKED,
301
SVN_ERR_WC_CATEGORY_START + 4,
302
"Attempted to lock an already-locked dir")
304
SVN_ERRDEF (SVN_ERR_WC_NOT_LOCKED,
305
SVN_ERR_WC_CATEGORY_START + 5,
306
"Working copy not locked; this is probably a bug, please report")
308
/* @deprecated Unused, slated for removal in the next major release. */
309
SVN_ERRDEF (SVN_ERR_WC_INVALID_LOCK,
310
SVN_ERR_WC_CATEGORY_START + 6,
313
SVN_ERRDEF (SVN_ERR_WC_NOT_DIRECTORY,
314
SVN_ERR_WC_CATEGORY_START + 7,
315
"Path is not a working copy directory")
317
SVN_ERRDEF (SVN_ERR_WC_NOT_FILE,
318
SVN_ERR_WC_CATEGORY_START + 8,
319
"Path is not a working copy file")
321
SVN_ERRDEF (SVN_ERR_WC_BAD_ADM_LOG,
322
SVN_ERR_WC_CATEGORY_START + 9,
323
"Problem running log")
325
SVN_ERRDEF (SVN_ERR_WC_PATH_NOT_FOUND,
326
SVN_ERR_WC_CATEGORY_START + 10,
327
"Can't find a working copy path")
329
SVN_ERRDEF (SVN_ERR_WC_NOT_UP_TO_DATE,
330
SVN_ERR_WC_CATEGORY_START + 11,
331
"Working copy is not up-to-date")
333
SVN_ERRDEF (SVN_ERR_WC_LEFT_LOCAL_MOD,
334
SVN_ERR_WC_CATEGORY_START + 12,
335
"Left locally modified or unversioned files")
337
SVN_ERRDEF (SVN_ERR_WC_SCHEDULE_CONFLICT,
338
SVN_ERR_WC_CATEGORY_START + 13,
339
"Unmergeable scheduling requested on an entry")
341
SVN_ERRDEF (SVN_ERR_WC_PATH_FOUND,
342
SVN_ERR_WC_CATEGORY_START + 14,
343
"Found a working copy path")
345
SVN_ERRDEF (SVN_ERR_WC_FOUND_CONFLICT,
346
SVN_ERR_WC_CATEGORY_START + 15,
347
"A conflict in the working copy obstructs the current operation")
349
SVN_ERRDEF (SVN_ERR_WC_CORRUPT,
350
SVN_ERR_WC_CATEGORY_START + 16,
351
"Working copy is corrupt")
353
SVN_ERRDEF (SVN_ERR_WC_CORRUPT_TEXT_BASE,
354
SVN_ERR_WC_CATEGORY_START + 17,
355
"Working copy text base is corrupt")
357
SVN_ERRDEF (SVN_ERR_WC_NODE_KIND_CHANGE,
358
SVN_ERR_WC_CATEGORY_START + 18,
359
"Cannot change node kind")
361
SVN_ERRDEF (SVN_ERR_WC_INVALID_OP_ON_CWD,
362
SVN_ERR_WC_CATEGORY_START + 19,
363
"Invalid operation on the current working directory")
365
SVN_ERRDEF (SVN_ERR_WC_BAD_ADM_LOG_START,
366
SVN_ERR_WC_CATEGORY_START + 20,
367
"Problem on first log entry in a working copy")
369
SVN_ERRDEF (SVN_ERR_WC_UNSUPPORTED_FORMAT,
370
SVN_ERR_WC_CATEGORY_START + 21,
371
"Unsupported working copy format")
373
SVN_ERRDEF (SVN_ERR_WC_BAD_PATH,
374
SVN_ERR_WC_CATEGORY_START + 22,
375
"Path syntax not supported in this context")
377
/* @since New in 1.2. */
378
SVN_ERRDEF (SVN_ERR_WC_INVALID_SCHEDULE,
379
SVN_ERR_WC_CATEGORY_START + 23,
384
SVN_ERRDEF (SVN_ERR_FS_GENERAL,
385
SVN_ERR_FS_CATEGORY_START + 0,
386
"General filesystem error")
388
SVN_ERRDEF (SVN_ERR_FS_CLEANUP,
389
SVN_ERR_FS_CATEGORY_START + 1,
390
"Error closing filesystem")
392
SVN_ERRDEF (SVN_ERR_FS_ALREADY_OPEN,
393
SVN_ERR_FS_CATEGORY_START + 2,
394
"Filesystem is already open")
396
SVN_ERRDEF (SVN_ERR_FS_NOT_OPEN,
397
SVN_ERR_FS_CATEGORY_START + 3,
398
"Filesystem is not open")
400
SVN_ERRDEF (SVN_ERR_FS_CORRUPT,
401
SVN_ERR_FS_CATEGORY_START + 4,
402
"Filesystem is corrupt")
404
SVN_ERRDEF (SVN_ERR_FS_PATH_SYNTAX,
405
SVN_ERR_FS_CATEGORY_START + 5,
406
"Invalid filesystem path syntax")
408
SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_REVISION,
409
SVN_ERR_FS_CATEGORY_START + 6,
410
"Invalid filesystem revision number")
412
SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_TRANSACTION,
413
SVN_ERR_FS_CATEGORY_START + 7,
414
"Invalid filesystem transaction name")
416
SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_ENTRY,
417
SVN_ERR_FS_CATEGORY_START + 8,
418
"Filesystem directory has no such entry")
420
SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_REPRESENTATION,
421
SVN_ERR_FS_CATEGORY_START + 9,
422
"Filesystem has no such representation")
424
SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_STRING,
425
SVN_ERR_FS_CATEGORY_START + 10,
426
"Filesystem has no such string")
428
SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_COPY,
429
SVN_ERR_FS_CATEGORY_START + 11,
430
"Filesystem has no such copy")
432
SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
433
SVN_ERR_FS_CATEGORY_START + 12,
434
"The specified transaction is not mutable")
436
SVN_ERRDEF (SVN_ERR_FS_NOT_FOUND,
437
SVN_ERR_FS_CATEGORY_START + 13,
438
"Filesystem has no item")
440
SVN_ERRDEF (SVN_ERR_FS_ID_NOT_FOUND,
441
SVN_ERR_FS_CATEGORY_START + 14,
442
"Filesystem has no such node-rev-id")
444
SVN_ERRDEF (SVN_ERR_FS_NOT_ID,
445
SVN_ERR_FS_CATEGORY_START + 15,
446
"String does not represent a node or node-rev-id")
448
SVN_ERRDEF (SVN_ERR_FS_NOT_DIRECTORY,
449
SVN_ERR_FS_CATEGORY_START + 16,
450
"Name does not refer to a filesystem directory")
452
SVN_ERRDEF (SVN_ERR_FS_NOT_FILE,
453
SVN_ERR_FS_CATEGORY_START + 17,
454
"Name does not refer to a filesystem file")
456
SVN_ERRDEF (SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
457
SVN_ERR_FS_CATEGORY_START + 18,
458
"Name is not a single path component")
460
SVN_ERRDEF (SVN_ERR_FS_NOT_MUTABLE,
461
SVN_ERR_FS_CATEGORY_START + 19,
462
"Attempt to change immutable filesystem node")
464
SVN_ERRDEF (SVN_ERR_FS_ALREADY_EXISTS,
465
SVN_ERR_FS_CATEGORY_START + 20,
466
"Item already exists in filesystem")
468
SVN_ERRDEF (SVN_ERR_FS_ROOT_DIR,
469
SVN_ERR_FS_CATEGORY_START + 21,
470
"Attempt to remove or recreate fs root dir")
472
SVN_ERRDEF (SVN_ERR_FS_NOT_TXN_ROOT,
473
SVN_ERR_FS_CATEGORY_START + 22,
474
"Object is not a transaction root")
476
SVN_ERRDEF (SVN_ERR_FS_NOT_REVISION_ROOT,
477
SVN_ERR_FS_CATEGORY_START + 23,
478
"Object is not a revision root")
480
SVN_ERRDEF (SVN_ERR_FS_CONFLICT,
481
SVN_ERR_FS_CATEGORY_START + 24,
482
"Merge conflict during commit")
484
SVN_ERRDEF (SVN_ERR_FS_REP_CHANGED,
485
SVN_ERR_FS_CATEGORY_START + 25,
486
"A representation vanished or changed between reads")
488
SVN_ERRDEF (SVN_ERR_FS_REP_NOT_MUTABLE,
489
SVN_ERR_FS_CATEGORY_START + 26,
490
"Tried to change an immutable representation")
492
SVN_ERRDEF (SVN_ERR_FS_MALFORMED_SKEL,
493
SVN_ERR_FS_CATEGORY_START + 27,
494
"Malformed skeleton data")
496
SVN_ERRDEF (SVN_ERR_FS_TXN_OUT_OF_DATE,
497
SVN_ERR_FS_CATEGORY_START + 28,
498
"Transaction is out of date")
500
SVN_ERRDEF (SVN_ERR_FS_BERKELEY_DB,
501
SVN_ERR_FS_CATEGORY_START + 29,
504
SVN_ERRDEF (SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
505
SVN_ERR_FS_CATEGORY_START + 30,
506
"Berkeley DB deadlock error")
508
SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_DEAD,
509
SVN_ERR_FS_CATEGORY_START + 31,
510
"Transaction is dead")
512
SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_NOT_DEAD,
513
SVN_ERR_FS_CATEGORY_START + 32,
514
"Transaction is not dead")
516
/* @since New in 1.1. */
517
SVN_ERRDEF (SVN_ERR_FS_UNKNOWN_FS_TYPE,
518
SVN_ERR_FS_CATEGORY_START + 33,
521
/* @since New in 1.2 */
522
SVN_ERRDEF (SVN_ERR_FS_NO_USER,
523
SVN_ERR_FS_CATEGORY_START + 34,
524
"No user associated with filesystem")
526
/* @since New in 1.2. */
527
SVN_ERRDEF (SVN_ERR_FS_PATH_ALREADY_LOCKED,
528
SVN_ERR_FS_CATEGORY_START + 35,
529
"Path is already locked")
531
/* @since New in 1.2. */
532
SVN_ERRDEF (SVN_ERR_FS_PATH_NOT_LOCKED,
533
SVN_ERR_FS_CATEGORY_START + 36,
534
"Path is not locked")
536
/* @since New in 1.2. */
537
SVN_ERRDEF (SVN_ERR_FS_BAD_LOCK_TOKEN,
538
SVN_ERR_FS_CATEGORY_START + 37,
539
"Lock token is incorrect")
541
/* @since New in 1.2. */
542
SVN_ERRDEF (SVN_ERR_FS_NO_LOCK_TOKEN,
543
SVN_ERR_FS_CATEGORY_START + 38,
544
"No lock token provided")
546
/* @since New in 1.2. */
547
SVN_ERRDEF (SVN_ERR_FS_LOCK_OWNER_MISMATCH,
548
SVN_ERR_FS_CATEGORY_START + 39,
549
"Username does not match lock owner")
551
/* @since New in 1.2. */
552
SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_LOCK,
553
SVN_ERR_FS_CATEGORY_START + 40,
554
"Filesystem has no such lock")
556
/* @since New in 1.2. */
557
SVN_ERRDEF (SVN_ERR_FS_LOCK_EXPIRED,
558
SVN_ERR_FS_CATEGORY_START + 41,
561
/* @since New in 1.2. */
562
SVN_ERRDEF (SVN_ERR_FS_OUT_OF_DATE,
563
SVN_ERR_FS_CATEGORY_START + 42,
564
"Item is out of date")
566
/* @since New in 1.2.
568
* This is analogous to SVN_ERR_REPOS_UNSUPPORTED_VERSION. To avoid
569
* confusion with "versions" (i.e., releases) of Subversion, we've
570
* started calling this the "format" number instead. The old
571
* SVN_ERR_REPOS_UNSUPPORTED_VERSION error predates this and so
574
SVN_ERRDEF (SVN_ERR_FS_UNSUPPORTED_FORMAT,
575
SVN_ERR_FS_CATEGORY_START + 43,
576
"Unsupported FS format")
580
SVN_ERRDEF (SVN_ERR_REPOS_LOCKED,
581
SVN_ERR_REPOS_CATEGORY_START + 0,
582
"The repository is locked, perhaps for db recovery")
584
SVN_ERRDEF (SVN_ERR_REPOS_HOOK_FAILURE,
585
SVN_ERR_REPOS_CATEGORY_START + 1,
586
"A repository hook failed")
588
SVN_ERRDEF (SVN_ERR_REPOS_BAD_ARGS,
589
SVN_ERR_REPOS_CATEGORY_START + 2,
590
"Incorrect arguments supplied")
592
SVN_ERRDEF (SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
593
SVN_ERR_REPOS_CATEGORY_START + 3,
594
"A report cannot be generated because no data was supplied")
596
SVN_ERRDEF (SVN_ERR_REPOS_BAD_REVISION_REPORT,
597
SVN_ERR_REPOS_CATEGORY_START + 4,
598
"Bogus revision report")
600
/* This is analogous to SVN_ERR_FS_UNSUPPORTED_FORMAT. To avoid
601
* confusion with "versions" (i.e., releases) of Subversion, we
602
* started using the word "format" instead of "version". However,
603
* this error code's name predates that decision.
605
SVN_ERRDEF (SVN_ERR_REPOS_UNSUPPORTED_VERSION,
606
SVN_ERR_REPOS_CATEGORY_START + 5,
607
"Unsupported repository version")
609
SVN_ERRDEF (SVN_ERR_REPOS_DISABLED_FEATURE,
610
SVN_ERR_REPOS_CATEGORY_START + 6,
611
"Disabled repository feature")
613
SVN_ERRDEF (SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
614
SVN_ERR_REPOS_CATEGORY_START + 7,
615
"Error running post-commit hook")
617
/* @since New in 1.2 */
618
SVN_ERRDEF (SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED,
619
SVN_ERR_REPOS_CATEGORY_START + 8,
620
"Error running post-lock hook")
622
/* @since New in 1.2. */
623
SVN_ERRDEF (SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED,
624
SVN_ERR_REPOS_CATEGORY_START + 9,
625
"Error running post-unlock hook")
628
/* generic RA errors */
630
SVN_ERRDEF (SVN_ERR_RA_ILLEGAL_URL,
631
SVN_ERR_RA_CATEGORY_START + 0,
632
"Bad URL passed to RA layer")
634
SVN_ERRDEF (SVN_ERR_RA_NOT_AUTHORIZED,
635
SVN_ERR_RA_CATEGORY_START + 1,
636
"Authorization failed")
638
SVN_ERRDEF (SVN_ERR_RA_UNKNOWN_AUTH,
639
SVN_ERR_RA_CATEGORY_START + 2,
640
"Unknown authorization method")
642
SVN_ERRDEF (SVN_ERR_RA_NOT_IMPLEMENTED,
643
SVN_ERR_RA_CATEGORY_START + 3,
644
"Repository access method not implemented")
646
SVN_ERRDEF (SVN_ERR_RA_OUT_OF_DATE,
647
SVN_ERR_RA_CATEGORY_START + 4,
648
"Item is out-of-date")
650
SVN_ERRDEF (SVN_ERR_RA_NO_REPOS_UUID,
651
SVN_ERR_RA_CATEGORY_START + 5,
652
"Repository has no UUID")
654
SVN_ERRDEF (SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
655
SVN_ERR_RA_CATEGORY_START + 6,
656
"Unsupported RA plugin ABI version")
658
/* @since New in 1.2. */
659
SVN_ERRDEF (SVN_ERR_RA_NOT_LOCKED,
660
SVN_ERR_RA_CATEGORY_START + 7,
661
"Path is not locked")
666
SVN_ERRDEF (SVN_ERR_RA_DAV_SOCK_INIT,
667
SVN_ERR_RA_DAV_CATEGORY_START + 0,
668
"RA layer failed to init socket layer")
670
SVN_ERRDEF (SVN_ERR_RA_DAV_CREATING_REQUEST,
671
SVN_ERR_RA_DAV_CATEGORY_START + 1,
672
"RA layer failed to create HTTP request")
674
SVN_ERRDEF (SVN_ERR_RA_DAV_REQUEST_FAILED,
675
SVN_ERR_RA_DAV_CATEGORY_START + 2,
676
"RA layer request failed")
678
SVN_ERRDEF (SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
679
SVN_ERR_RA_DAV_CATEGORY_START + 3,
680
"RA layer didn't receive requested OPTIONS info")
682
SVN_ERRDEF (SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
683
SVN_ERR_RA_DAV_CATEGORY_START + 4,
684
"RA layer failed to fetch properties")
686
SVN_ERRDEF (SVN_ERR_RA_DAV_ALREADY_EXISTS,
687
SVN_ERR_RA_DAV_CATEGORY_START + 5,
688
"RA layer file already exists")
690
SVN_ERRDEF (SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
691
SVN_ERR_RA_DAV_CATEGORY_START + 6,
692
"Invalid configuration value")
694
SVN_ERRDEF (SVN_ERR_RA_DAV_PATH_NOT_FOUND,
695
SVN_ERR_RA_DAV_CATEGORY_START + 7,
696
"HTTP Path Not Found")
698
SVN_ERRDEF (SVN_ERR_RA_DAV_PROPPATCH_FAILED,
699
SVN_ERR_RA_DAV_CATEGORY_START + 8,
700
"Failed to execute WebDAV PROPPATCH")
702
/* @since New in 1.2 */
703
SVN_ERRDEF (SVN_ERR_RA_DAV_MALFORMED_DATA,
704
SVN_ERR_RA_DAV_CATEGORY_START + 9,
705
"Malformed network data")
708
/* ra_local errors */
710
SVN_ERRDEF (SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
711
SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
712
"Couldn't find a repository")
714
SVN_ERRDEF (SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
715
SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
716
"Couldn't open a repository")
719
SVN_ERRDEF (SVN_ERR_RA_SVN_CMD_ERR,
720
SVN_ERR_RA_SVN_CATEGORY_START + 0,
721
"Special code for wrapping server errors to report to client")
723
SVN_ERRDEF (SVN_ERR_RA_SVN_UNKNOWN_CMD,
724
SVN_ERR_RA_SVN_CATEGORY_START + 1,
725
"Unknown svn protocol command")
727
SVN_ERRDEF (SVN_ERR_RA_SVN_CONNECTION_CLOSED,
728
SVN_ERR_RA_SVN_CATEGORY_START + 2,
729
"Network connection closed unexpectedly")
731
SVN_ERRDEF (SVN_ERR_RA_SVN_IO_ERROR,
732
SVN_ERR_RA_SVN_CATEGORY_START + 3,
733
"Network read/write error")
735
SVN_ERRDEF (SVN_ERR_RA_SVN_MALFORMED_DATA,
736
SVN_ERR_RA_SVN_CATEGORY_START + 4,
737
"Malformed network data")
739
SVN_ERRDEF (SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
740
SVN_ERR_RA_SVN_CATEGORY_START + 5,
741
"Couldn't find a repository")
743
SVN_ERRDEF (SVN_ERR_RA_SVN_BAD_VERSION,
744
SVN_ERR_RA_SVN_CATEGORY_START + 6,
745
"Client/server version mismatch")
747
/* libsvn_auth errors */
749
/* this error can be used when an auth provider doesn't have
750
the creds, but no other "real" error occurred. */
751
SVN_ERRDEF (SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
752
SVN_ERR_AUTHN_CATEGORY_START + 0,
753
"Credential data unavailable")
755
SVN_ERRDEF (SVN_ERR_AUTHN_NO_PROVIDER,
756
SVN_ERR_AUTHN_CATEGORY_START + 1,
757
"No authentication provider available")
759
SVN_ERRDEF (SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
760
SVN_ERR_AUTHN_CATEGORY_START + 2,
761
"All authentication providers exhausted")
763
SVN_ERRDEF (SVN_ERR_AUTHN_CREDS_NOT_SAVED,
764
SVN_ERR_AUTHN_CATEGORY_START + 3,
765
"All authentication providers exhausted")
767
/* authorization errors */
769
SVN_ERRDEF (SVN_ERR_AUTHZ_ROOT_UNREADABLE,
770
SVN_ERR_AUTHZ_CATEGORY_START + 0,
771
"Read access denied for root of edit")
773
/* @since New in 1.1. */
774
SVN_ERRDEF (SVN_ERR_AUTHZ_UNREADABLE,
775
SVN_ERR_AUTHZ_CATEGORY_START + 1,
776
"Item is not readable")
778
/* @since New in 1.1. */
779
SVN_ERRDEF (SVN_ERR_AUTHZ_PARTIALLY_READABLE,
780
SVN_ERR_AUTHZ_CATEGORY_START + 2,
781
"Item is partially readable")
786
SVN_ERRDEF (SVN_ERR_SVNDIFF_INVALID_HEADER,
787
SVN_ERR_SVNDIFF_CATEGORY_START + 0,
788
"Svndiff data has invalid header")
790
SVN_ERRDEF (SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
791
SVN_ERR_SVNDIFF_CATEGORY_START + 1,
792
"Svndiff data contains corrupt window")
794
SVN_ERRDEF (SVN_ERR_SVNDIFF_BACKWARD_VIEW,
795
SVN_ERR_SVNDIFF_CATEGORY_START + 2,
796
"Svndiff data contains backward-sliding source view")
798
SVN_ERRDEF (SVN_ERR_SVNDIFF_INVALID_OPS,
799
SVN_ERR_SVNDIFF_CATEGORY_START + 3,
800
"Svndiff data contains invalid instruction")
802
SVN_ERRDEF (SVN_ERR_SVNDIFF_UNEXPECTED_END,
803
SVN_ERR_SVNDIFF_CATEGORY_START + 4,
804
"Svndiff data ends unexpectedly")
806
/* mod_dav_svn errors */
808
SVN_ERRDEF (SVN_ERR_APMOD_MISSING_PATH_TO_FS,
809
SVN_ERR_APMOD_CATEGORY_START + 0,
810
"Apache has no path to an SVN filesystem")
812
SVN_ERRDEF (SVN_ERR_APMOD_MALFORMED_URI,
813
SVN_ERR_APMOD_CATEGORY_START + 1,
814
"Apache got a malformed URI")
816
SVN_ERRDEF (SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
817
SVN_ERR_APMOD_CATEGORY_START + 2,
818
"Activity not found")
820
SVN_ERRDEF (SVN_ERR_APMOD_BAD_BASELINE,
821
SVN_ERR_APMOD_CATEGORY_START + 3,
822
"Baseline incorrect")
824
SVN_ERRDEF (SVN_ERR_APMOD_CONNECTION_ABORTED,
825
SVN_ERR_APMOD_CATEGORY_START + 4,
826
"Input/output error")
828
/* libsvn_client errors */
830
SVN_ERRDEF (SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
831
SVN_ERR_CLIENT_CATEGORY_START + 0,
832
"A path under version control is needed for this operation")
834
SVN_ERRDEF (SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
835
SVN_ERR_CLIENT_CATEGORY_START + 1,
836
"Repository access is needed for this operation")
838
SVN_ERRDEF (SVN_ERR_CLIENT_BAD_REVISION,
839
SVN_ERR_CLIENT_CATEGORY_START + 2,
840
"Bogus revision information given")
842
SVN_ERRDEF (SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
843
SVN_ERR_CLIENT_CATEGORY_START + 3,
844
"Attempting to commit to a URL more than once")
846
SVN_ERRDEF (SVN_ERR_CLIENT_IS_BINARY_FILE,
847
SVN_ERR_CLIENT_CATEGORY_START + 4,
848
"Operation does not apply to binary file")
850
/*### SVN_PROP_EXTERNALS needed to be replaced with "svn:externals"
851
in order to get gettext translatable strings */
852
SVN_ERRDEF (SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
853
SVN_ERR_CLIENT_CATEGORY_START + 5,
854
"Format of an svn:externals property was invalid")
856
SVN_ERRDEF (SVN_ERR_CLIENT_MODIFIED,
857
SVN_ERR_CLIENT_CATEGORY_START + 6,
858
"Attempting restricted operation for modified resource")
860
SVN_ERRDEF (SVN_ERR_CLIENT_IS_DIRECTORY,
861
SVN_ERR_CLIENT_CATEGORY_START + 7,
862
"Operation does not apply to directory")
864
SVN_ERRDEF (SVN_ERR_CLIENT_REVISION_RANGE,
865
SVN_ERR_CLIENT_CATEGORY_START + 8,
866
"Revision range is not allowed")
868
SVN_ERRDEF (SVN_ERR_CLIENT_INVALID_RELOCATION,
869
SVN_ERR_CLIENT_CATEGORY_START + 9,
870
"Inter-repository relocation not allowed")
872
SVN_ERRDEF (SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
873
SVN_ERR_CLIENT_CATEGORY_START + 10,
874
"Author name cannot contain a newline")
876
SVN_ERRDEF (SVN_ERR_CLIENT_PROPERTY_NAME,
877
SVN_ERR_CLIENT_CATEGORY_START + 11,
880
/* @since New in 1.1. */
881
SVN_ERRDEF (SVN_ERR_CLIENT_UNRELATED_RESOURCES,
882
SVN_ERR_CLIENT_CATEGORY_START + 12,
883
"Two versioned resources are unrelated")
885
/* @since New in 1.2. */
886
SVN_ERRDEF (SVN_ERR_CLIENT_MISSING_LOCK_TOKEN,
887
SVN_ERR_CLIENT_CATEGORY_START + 13,
888
"Path has no lock token")
892
SVN_ERRDEF (SVN_ERR_BASE,
893
SVN_ERR_MISC_CATEGORY_START + 0,
894
"A problem occurred; see later errors for details")
896
SVN_ERRDEF (SVN_ERR_PLUGIN_LOAD_FAILURE,
897
SVN_ERR_MISC_CATEGORY_START + 1,
898
"Failure loading plugin")
900
SVN_ERRDEF (SVN_ERR_MALFORMED_FILE,
901
SVN_ERR_MISC_CATEGORY_START + 2,
904
SVN_ERRDEF (SVN_ERR_INCOMPLETE_DATA,
905
SVN_ERR_MISC_CATEGORY_START + 3,
908
SVN_ERRDEF (SVN_ERR_INCORRECT_PARAMS,
909
SVN_ERR_MISC_CATEGORY_START + 4,
910
"Incorrect parameters given")
912
SVN_ERRDEF (SVN_ERR_UNVERSIONED_RESOURCE,
913
SVN_ERR_MISC_CATEGORY_START + 5,
914
"Tried a versioning operation on an unversioned resource")
916
SVN_ERRDEF (SVN_ERR_TEST_FAILED,
917
SVN_ERR_MISC_CATEGORY_START + 6,
920
SVN_ERRDEF (SVN_ERR_UNSUPPORTED_FEATURE,
921
SVN_ERR_MISC_CATEGORY_START + 7,
922
"Trying to use an unsupported feature")
924
SVN_ERRDEF (SVN_ERR_BAD_PROP_KIND,
925
SVN_ERR_MISC_CATEGORY_START + 8,
926
"Unexpected or unknown property kind")
928
SVN_ERRDEF (SVN_ERR_ILLEGAL_TARGET,
929
SVN_ERR_MISC_CATEGORY_START + 9,
930
"Illegal target for the requested operation")
932
SVN_ERRDEF (SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
933
SVN_ERR_MISC_CATEGORY_START + 10,
934
"MD5 checksum is missing")
936
SVN_ERRDEF (SVN_ERR_DIR_NOT_EMPTY,
937
SVN_ERR_MISC_CATEGORY_START + 11,
938
"Directory needs to be empty but is not")
940
SVN_ERRDEF (SVN_ERR_EXTERNAL_PROGRAM,
941
SVN_ERR_MISC_CATEGORY_START + 12,
942
"Error calling external program")
944
SVN_ERRDEF (SVN_ERR_SWIG_PY_EXCEPTION_SET,
945
SVN_ERR_MISC_CATEGORY_START + 13,
946
"Python exception has been set with the error")
948
SVN_ERRDEF (SVN_ERR_CHECKSUM_MISMATCH,
949
SVN_ERR_MISC_CATEGORY_START + 14,
950
"A checksum mismatch occurred")
952
SVN_ERRDEF (SVN_ERR_CANCELLED,
953
SVN_ERR_MISC_CATEGORY_START + 15,
954
"The operation was interrupted")
956
SVN_ERRDEF (SVN_ERR_INVALID_DIFF_OPTION,
957
SVN_ERR_MISC_CATEGORY_START + 16,
958
"The specified diff option is not supported")
960
SVN_ERRDEF (SVN_ERR_PROPERTY_NOT_FOUND,
961
SVN_ERR_MISC_CATEGORY_START + 17,
962
"Property not found")
964
SVN_ERRDEF (SVN_ERR_NO_AUTH_FILE_PATH,
965
SVN_ERR_MISC_CATEGORY_START + 18,
966
"No auth file path available")
968
/* @since New in 1.1. */
969
SVN_ERRDEF (SVN_ERR_VERSION_MISMATCH,
970
SVN_ERR_MISC_CATEGORY_START + 19,
971
"Incompatible library version")
973
/* command-line client errors */
975
SVN_ERRDEF (SVN_ERR_CL_ARG_PARSING_ERROR,
976
SVN_ERR_CL_CATEGORY_START + 0,
977
"Client error in parsing arguments")
979
SVN_ERRDEF (SVN_ERR_CL_INSUFFICIENT_ARGS,
980
SVN_ERR_CL_CATEGORY_START + 1,
981
"Not enough args provided")
983
SVN_ERRDEF (SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
984
SVN_ERR_CL_CATEGORY_START + 2,
985
"Mutually exclusive arguments specified")
987
SVN_ERRDEF (SVN_ERR_CL_ADM_DIR_RESERVED,
988
SVN_ERR_CL_CATEGORY_START + 3,
989
"Attempted command in administrative dir")
991
SVN_ERRDEF (SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
992
SVN_ERR_CL_CATEGORY_START + 4,
993
"The log message file is under version control")
995
SVN_ERRDEF (SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
996
SVN_ERR_CL_CATEGORY_START + 5,
997
"The log message is a pathname")
999
SVN_ERRDEF (SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
1000
SVN_ERR_CL_CATEGORY_START + 6,
1001
"Committing in directory scheduled for addition")
1003
SVN_ERRDEF (SVN_ERR_CL_NO_EXTERNAL_EDITOR,
1004
SVN_ERR_CL_CATEGORY_START + 7,
1005
"No external editor available")
1007
SVN_ERRDEF (SVN_ERR_CL_BAD_LOG_MESSAGE,
1008
SVN_ERR_CL_CATEGORY_START + 8,
1009
"Something is wrong with the log message's contents")
1014
#undef SVN_ERROR_START
1016
#undef SVN_ERROR_END
1020
#endif /* __cplusplus */
1022
#endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */