Main Page   Modules   Data Structures   File List   Data Fields  

svn_error_codes.h

00001 /**
00002  * @copyright
00003  * ====================================================================
00004  * Copyright (c) 2000-2004 CollabNet.  All rights reserved.
00005  *
00006  * This software is licensed as described in the file COPYING, which
00007  * you should have received as part of this distribution.  The terms
00008  * are also available at http://subversion.tigris.org/license-1.html.
00009  * If newer versions of this license are posted there, you may use a
00010  * newer version instead, at your option.
00011  *
00012  * This software consists of voluntary contributions made by many
00013  * individuals.  For exact contribution history, see the revision
00014  * history and logs, available at http://subversion.tigris.org/.
00015  * ====================================================================
00016  * @endcopyright
00017  *
00018  * @file svn_error_codes.h
00019  * @brief Subversion error codes.
00020  */
00021 
00022 /* What's going on here?
00023  
00024    In order to define error codes and their associated description
00025    strings in the same place, we overload the SVN_ERRDEF() macro with
00026    two definitions below.  Both take two arguments, an error code name
00027    and a description string.  One definition of the macro just throws
00028    away the string and defines enumeration constants using the error
00029    code names -- that definition is used by the header file that
00030    exports error codes to the rest of Subversion.  The other
00031    definition creates a static table mapping the enum codes to their
00032    corresponding strings -- that definition is used by the C file that
00033    implements svn_strerror().
00034  
00035    The header and C files both include this file, using #defines to
00036    control which version of the macro they get.  
00037 */
00038 
00039 
00040 /* Process this file if we're building an error array, or if we have
00041    not defined the enumerated constants yet.  */
00042 #if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED)
00043 
00044 
00045 #include <apr.h>
00046 #include <apr_errno.h>     /* APR's error system */
00047 
00048 #include "svn_props.h"     /* For SVN_PROP_EXTERNALS. */
00049 
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif /* __cplusplus */
00053 
00054 #if defined(SVN_ERROR_BUILD_ARRAY)
00055 
00056 #define SVN_ERROR_START \
00057         static const err_defn error_table[] = { \
00058           { SVN_WARNING, "Warning" },
00059 #define SVN_ERRDEF(num, offset, str) { num, str },
00060 #define SVN_ERROR_END { 0, NULL } };
00061 
00062 #elif !defined(SVN_ERROR_ENUM_DEFINED)
00063 
00064 #define SVN_ERROR_START \
00065         typedef enum svn_errno_t { \
00066           SVN_WARNING = APR_OS_START_USERERR + 1,
00067 #define SVN_ERRDEF(num, offset, str) /** str */ num = offset,
00068 #define SVN_ERROR_END SVN_ERR_LAST } svn_errno_t;
00069 
00070 #define SVN_ERROR_ENUM_DEFINED
00071 
00072 #endif
00073 
00074 /* Define custom Subversion error numbers, in the range reserved for
00075    that in APR: from APR_OS_START_USERERR to APR_OS_START_SYSERR (see
00076    apr_errno.h).
00077 
00078    Error numbers are divided into categories of up to 5000 errors
00079    each.  Since we're dividing up the APR user error space, which has
00080    room for 500,000 errors, we can have up to 100 categories.
00081    Categories are fixed-size; if a category has fewer than 5000
00082    errors, then it just ends with a range of unused numbers.
00083 
00084    To maintain binary compatibility, please observe these guidelines:
00085 
00086       - When adding a new error, always add on the end of the
00087         appropriate category, so that the real values of existing
00088         errors are not changed.
00089 
00090       - When deleting an error, leave a placeholder comment indicating
00091         the offset, again so that the values of other errors are not
00092         perturbed.
00093 */
00094 
00095 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00096 
00097 #define SVN_ERR_CATEGORY_SIZE 5000
00098 
00099 /* Leave one category of room at the beginning, for SVN_WARNING and
00100    any other such beasts we might create in the future. */
00101 #define SVN_ERR_BAD_CATEGORY_START      (APR_OS_START_USERERR \
00102                                           + ( 1 * SVN_ERR_CATEGORY_SIZE))
00103 #define SVN_ERR_XML_CATEGORY_START      (APR_OS_START_USERERR \
00104                                           + ( 2 * SVN_ERR_CATEGORY_SIZE))
00105 #define SVN_ERR_IO_CATEGORY_START       (APR_OS_START_USERERR \
00106                                           + ( 3 * SVN_ERR_CATEGORY_SIZE))
00107 #define SVN_ERR_STREAM_CATEGORY_START   (APR_OS_START_USERERR \
00108                                           + ( 4 * SVN_ERR_CATEGORY_SIZE))
00109 #define SVN_ERR_NODE_CATEGORY_START     (APR_OS_START_USERERR \
00110                                           + ( 5 * SVN_ERR_CATEGORY_SIZE))
00111 #define SVN_ERR_ENTRY_CATEGORY_START    (APR_OS_START_USERERR \
00112                                           + ( 6 * SVN_ERR_CATEGORY_SIZE))
00113 #define SVN_ERR_WC_CATEGORY_START       (APR_OS_START_USERERR \
00114                                           + ( 7 * SVN_ERR_CATEGORY_SIZE))
00115 #define SVN_ERR_FS_CATEGORY_START       (APR_OS_START_USERERR \
00116                                           + ( 8 * SVN_ERR_CATEGORY_SIZE))
00117 #define SVN_ERR_REPOS_CATEGORY_START    (APR_OS_START_USERERR \
00118                                           + ( 9 * SVN_ERR_CATEGORY_SIZE))
00119 #define SVN_ERR_RA_CATEGORY_START       (APR_OS_START_USERERR \
00120                                           + (10 * SVN_ERR_CATEGORY_SIZE))
00121 #define SVN_ERR_RA_DAV_CATEGORY_START   (APR_OS_START_USERERR \
00122                                           + (11 * SVN_ERR_CATEGORY_SIZE))
00123 #define SVN_ERR_RA_LOCAL_CATEGORY_START (APR_OS_START_USERERR \
00124                                           + (12 * SVN_ERR_CATEGORY_SIZE))
00125 #define SVN_ERR_SVNDIFF_CATEGORY_START  (APR_OS_START_USERERR \
00126                                           + (13 * SVN_ERR_CATEGORY_SIZE))
00127 #define SVN_ERR_APMOD_CATEGORY_START    (APR_OS_START_USERERR \
00128                                           + (14 * SVN_ERR_CATEGORY_SIZE))
00129 #define SVN_ERR_CLIENT_CATEGORY_START   (APR_OS_START_USERERR \
00130                                           + (15 * SVN_ERR_CATEGORY_SIZE))
00131 #define SVN_ERR_MISC_CATEGORY_START     (APR_OS_START_USERERR \
00132                                            + (16 * SVN_ERR_CATEGORY_SIZE))
00133 #define SVN_ERR_CL_CATEGORY_START       (APR_OS_START_USERERR \
00134                                            + (17 * SVN_ERR_CATEGORY_SIZE))
00135 #define SVN_ERR_RA_SVN_CATEGORY_START   (APR_OS_START_USERERR \
00136                                            + (18 * SVN_ERR_CATEGORY_SIZE))
00137 #define SVN_ERR_AUTHN_CATEGORY_START    (APR_OS_START_USERERR \
00138                                            + (19 * SVN_ERR_CATEGORY_SIZE))
00139 #define SVN_ERR_AUTHZ_CATEGORY_START    (APR_OS_START_USERERR \
00140                                            + (20 * SVN_ERR_CATEGORY_SIZE))
00141 
00142 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00143 
00144 SVN_ERROR_START
00145 
00146   /* validation ("BAD_FOO") errors */
00147 
00148   SVN_ERRDEF (SVN_ERR_BAD_CONTAINING_POOL,
00149               SVN_ERR_BAD_CATEGORY_START + 0,
00150               "Bad parent pool passed to svn_make_pool()")
00151 
00152   SVN_ERRDEF (SVN_ERR_BAD_FILENAME,
00153               SVN_ERR_BAD_CATEGORY_START + 1,
00154               "Bogus filename")
00155 
00156   SVN_ERRDEF (SVN_ERR_BAD_URL,
00157               SVN_ERR_BAD_CATEGORY_START + 2,
00158               "Bogus URL")
00159 
00160   SVN_ERRDEF (SVN_ERR_BAD_DATE,
00161               SVN_ERR_BAD_CATEGORY_START + 3,
00162               "Bogus date")
00163 
00164   SVN_ERRDEF (SVN_ERR_BAD_MIME_TYPE,
00165               SVN_ERR_BAD_CATEGORY_START + 4,
00166               "Bogus mime-type")
00167 
00168   /* UNUSED error slot:                  + 5 */
00169 
00170   SVN_ERRDEF (SVN_ERR_BAD_VERSION_FILE_FORMAT,
00171               SVN_ERR_BAD_CATEGORY_START + 6,
00172               "Version file format not correct")
00173 
00174   /* xml errors */
00175 
00176   SVN_ERRDEF (SVN_ERR_XML_ATTRIB_NOT_FOUND,
00177               SVN_ERR_XML_CATEGORY_START + 0,
00178               "No such XML tag attribute")
00179 
00180   SVN_ERRDEF (SVN_ERR_XML_MISSING_ANCESTRY,
00181               SVN_ERR_XML_CATEGORY_START + 1,
00182               "<delta-pkg> is missing ancestry")
00183 
00184   SVN_ERRDEF (SVN_ERR_XML_UNKNOWN_ENCODING,
00185               SVN_ERR_XML_CATEGORY_START + 2,
00186               "Unrecognized binary data encoding; can't decode")
00187 
00188   SVN_ERRDEF (SVN_ERR_XML_MALFORMED,
00189               SVN_ERR_XML_CATEGORY_START + 3,
00190               "XML data was not well-formed")
00191 
00192   /* io errors */
00193 
00194   SVN_ERRDEF (SVN_ERR_IO_INCONSISTENT_EOL,
00195               SVN_ERR_IO_CATEGORY_START + 0,
00196               "Inconsistent line ending style")
00197 
00198   SVN_ERRDEF (SVN_ERR_IO_UNKNOWN_EOL,
00199               SVN_ERR_IO_CATEGORY_START + 1,
00200               "Unrecognized line ending style")
00201 
00202   SVN_ERRDEF (SVN_ERR_IO_CORRUPT_EOL,
00203               SVN_ERR_IO_CATEGORY_START + 2,
00204               "Line endings other than expected")
00205 
00206   SVN_ERRDEF (SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
00207               SVN_ERR_IO_CATEGORY_START + 3,
00208               "Ran out of unique names")
00209 
00210   SVN_ERRDEF (SVN_ERR_IO_PIPE_FRAME_ERROR,
00211               SVN_ERR_IO_CATEGORY_START + 4,
00212               "Framing error in pipe protocol")
00213 
00214   SVN_ERRDEF (SVN_ERR_IO_PIPE_READ_ERROR,
00215               SVN_ERR_IO_CATEGORY_START + 5,
00216               "Read error in pipe")
00217 
00218   SVN_ERRDEF (SVN_ERR_IO_WRITE_ERROR,
00219               SVN_ERR_IO_CATEGORY_START + 6,
00220               "Write error")
00221 
00222   /* stream errors */
00223 
00224   SVN_ERRDEF (SVN_ERR_STREAM_UNEXPECTED_EOF,
00225               SVN_ERR_STREAM_CATEGORY_START + 0,
00226               "Unexpected EOF on stream")
00227 
00228   SVN_ERRDEF (SVN_ERR_STREAM_MALFORMED_DATA,
00229               SVN_ERR_STREAM_CATEGORY_START + 1,
00230               "Malformed stream data")
00231 
00232   SVN_ERRDEF (SVN_ERR_STREAM_UNRECOGNIZED_DATA,
00233               SVN_ERR_STREAM_CATEGORY_START + 2,
00234               "Unrecognized stream data")
00235 
00236   /* node errors */
00237 
00238   SVN_ERRDEF (SVN_ERR_NODE_UNKNOWN_KIND,
00239               SVN_ERR_NODE_CATEGORY_START + 0,
00240               "Unknown svn_node_kind")
00241 
00242   SVN_ERRDEF (SVN_ERR_NODE_UNEXPECTED_KIND,
00243               SVN_ERR_NODE_CATEGORY_START + 1,
00244               "Unexpected node kind found")
00245 
00246   /* entry errors */
00247 
00248   SVN_ERRDEF (SVN_ERR_ENTRY_NOT_FOUND,
00249               SVN_ERR_ENTRY_CATEGORY_START + 0,
00250               "Can't find an entry")
00251 
00252   /* UNUSED error slot:                    + 1 */
00253 
00254   SVN_ERRDEF (SVN_ERR_ENTRY_EXISTS,
00255               SVN_ERR_ENTRY_CATEGORY_START + 2,
00256               "Entry already exists")
00257 
00258   SVN_ERRDEF (SVN_ERR_ENTRY_MISSING_REVISION,
00259               SVN_ERR_ENTRY_CATEGORY_START + 3,
00260               "Entry has no revision")
00261 
00262   SVN_ERRDEF (SVN_ERR_ENTRY_MISSING_URL,
00263               SVN_ERR_ENTRY_CATEGORY_START + 4,
00264               "Entry has no URL")
00265 
00266   SVN_ERRDEF (SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
00267               SVN_ERR_ENTRY_CATEGORY_START + 5,
00268               "Entry has an invalid attribute")
00269 
00270   /* wc errors */
00271 
00272   SVN_ERRDEF (SVN_ERR_WC_OBSTRUCTED_UPDATE,
00273               SVN_ERR_WC_CATEGORY_START + 0,
00274               "Obstructed update")
00275 
00276   SVN_ERRDEF (SVN_ERR_WC_UNWIND_MISMATCH,
00277               SVN_ERR_WC_CATEGORY_START + 1,
00278               "Mismatch popping the WC unwind stack")
00279 
00280   SVN_ERRDEF (SVN_ERR_WC_UNWIND_EMPTY,
00281               SVN_ERR_WC_CATEGORY_START + 2,
00282               "Attempt to pop empty WC unwind stack")
00283 
00284   SVN_ERRDEF (SVN_ERR_WC_UNWIND_NOT_EMPTY,
00285               SVN_ERR_WC_CATEGORY_START + 3,
00286               "Attempt to unlock with non-empty unwind stack")
00287 
00288   SVN_ERRDEF (SVN_ERR_WC_LOCKED,
00289               SVN_ERR_WC_CATEGORY_START + 4,
00290               "Attempted to lock an already-locked dir")
00291 
00292   SVN_ERRDEF (SVN_ERR_WC_NOT_LOCKED,
00293               SVN_ERR_WC_CATEGORY_START + 5,
00294               "Working copy not locked")
00295 
00296   SVN_ERRDEF (SVN_ERR_WC_INVALID_LOCK,
00297               SVN_ERR_WC_CATEGORY_START + 6,
00298               "Invalid lock")
00299 
00300   SVN_ERRDEF (SVN_ERR_WC_NOT_DIRECTORY,
00301               SVN_ERR_WC_CATEGORY_START + 7,
00302               "Path is not a working copy directory")
00303 
00304   SVN_ERRDEF (SVN_ERR_WC_NOT_FILE,
00305               SVN_ERR_WC_CATEGORY_START + 8,
00306               "Path is not a working copy file")
00307 
00308   SVN_ERRDEF (SVN_ERR_WC_BAD_ADM_LOG,
00309               SVN_ERR_WC_CATEGORY_START + 9,
00310               "Problem running log")
00311 
00312   SVN_ERRDEF (SVN_ERR_WC_PATH_NOT_FOUND,
00313               SVN_ERR_WC_CATEGORY_START + 10,
00314               "Can't find a working copy path")
00315 
00316   SVN_ERRDEF (SVN_ERR_WC_NOT_UP_TO_DATE,
00317               SVN_ERR_WC_CATEGORY_START + 11,
00318               "Working copy is not up-to-date")
00319 
00320   SVN_ERRDEF (SVN_ERR_WC_LEFT_LOCAL_MOD,
00321               SVN_ERR_WC_CATEGORY_START + 12,
00322               "Left locally modified or unversioned files")
00323 
00324   SVN_ERRDEF (SVN_ERR_WC_SCHEDULE_CONFLICT,
00325               SVN_ERR_WC_CATEGORY_START + 13,
00326               "Unmergeable scheduling requested on an entry")
00327 
00328   SVN_ERRDEF (SVN_ERR_WC_PATH_FOUND,
00329               SVN_ERR_WC_CATEGORY_START + 14,
00330               "Found a working copy path")
00331 
00332   SVN_ERRDEF (SVN_ERR_WC_FOUND_CONFLICT,
00333               SVN_ERR_WC_CATEGORY_START + 15,
00334               "A conflict in the working copy obstructs the current operation")
00335 
00336   SVN_ERRDEF (SVN_ERR_WC_CORRUPT,
00337               SVN_ERR_WC_CATEGORY_START + 16,
00338               "Working copy is corrupt")
00339 
00340   SVN_ERRDEF (SVN_ERR_WC_CORRUPT_TEXT_BASE,
00341               SVN_ERR_WC_CATEGORY_START + 17,
00342               "Working copy text base is corrupt")
00343 
00344   SVN_ERRDEF (SVN_ERR_WC_NODE_KIND_CHANGE,
00345               SVN_ERR_WC_CATEGORY_START + 18,
00346               "Cannot change node kind")
00347 
00348   SVN_ERRDEF (SVN_ERR_WC_INVALID_OP_ON_CWD,
00349               SVN_ERR_WC_CATEGORY_START + 19,
00350               "Invalid operation on the current working directory")  
00351 
00352   SVN_ERRDEF (SVN_ERR_WC_BAD_ADM_LOG_START,
00353               SVN_ERR_WC_CATEGORY_START + 20,
00354               "Problem on first log entry in a working copy")
00355 
00356   SVN_ERRDEF (SVN_ERR_WC_UNSUPPORTED_FORMAT,
00357               SVN_ERR_WC_CATEGORY_START + 21,
00358               "Unsupported working copy format")  
00359 
00360   SVN_ERRDEF (SVN_ERR_WC_BAD_PATH,
00361               SVN_ERR_WC_CATEGORY_START + 22,
00362               "Path syntax not supported in this context")  
00363 
00364   /* fs errors */
00365 
00366   SVN_ERRDEF (SVN_ERR_FS_GENERAL,
00367               SVN_ERR_FS_CATEGORY_START + 0,
00368               "General filesystem error")
00369 
00370   SVN_ERRDEF (SVN_ERR_FS_CLEANUP,
00371               SVN_ERR_FS_CATEGORY_START + 1,
00372               "Error closing filesystem")
00373 
00374   SVN_ERRDEF (SVN_ERR_FS_ALREADY_OPEN,
00375               SVN_ERR_FS_CATEGORY_START + 2,
00376               "Filesystem is already open")
00377 
00378   SVN_ERRDEF (SVN_ERR_FS_NOT_OPEN,
00379               SVN_ERR_FS_CATEGORY_START + 3,
00380               "Filesystem is not open")
00381 
00382   SVN_ERRDEF (SVN_ERR_FS_CORRUPT,
00383               SVN_ERR_FS_CATEGORY_START + 4,
00384               "Filesystem is corrupt")
00385 
00386   SVN_ERRDEF (SVN_ERR_FS_PATH_SYNTAX,
00387               SVN_ERR_FS_CATEGORY_START + 5,
00388               "Invalid filesystem path syntax")
00389 
00390   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_REVISION,
00391               SVN_ERR_FS_CATEGORY_START + 6,
00392               "Invalid filesystem revision number")
00393 
00394   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_TRANSACTION,
00395               SVN_ERR_FS_CATEGORY_START + 7,
00396               "Invalid filesystem transaction name")
00397 
00398   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_ENTRY,
00399               SVN_ERR_FS_CATEGORY_START + 8,
00400               "Filesystem directory has no such entry")
00401 
00402   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_REPRESENTATION,
00403               SVN_ERR_FS_CATEGORY_START + 9,
00404               "Filesystem has no such representation")
00405 
00406   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_STRING,
00407               SVN_ERR_FS_CATEGORY_START + 10,
00408               "Filesystem has no such string")
00409 
00410   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_COPY,
00411               SVN_ERR_FS_CATEGORY_START + 11,
00412               "Filesystem has no such copy")
00413 
00414   SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
00415               SVN_ERR_FS_CATEGORY_START + 12,
00416               "The specified transaction is not mutable")
00417 
00418   SVN_ERRDEF (SVN_ERR_FS_NOT_FOUND,
00419               SVN_ERR_FS_CATEGORY_START + 13,
00420               "Filesystem has no item")
00421 
00422   SVN_ERRDEF (SVN_ERR_FS_ID_NOT_FOUND,
00423               SVN_ERR_FS_CATEGORY_START + 14,
00424               "Filesystem has no such node-rev-id")
00425 
00426   SVN_ERRDEF (SVN_ERR_FS_NOT_ID,
00427               SVN_ERR_FS_CATEGORY_START + 15,
00428               "String does not represent a node or node-rev-id")
00429 
00430   SVN_ERRDEF (SVN_ERR_FS_NOT_DIRECTORY,
00431               SVN_ERR_FS_CATEGORY_START + 16,
00432               "Name does not refer to a filesystem directory")
00433 
00434   SVN_ERRDEF (SVN_ERR_FS_NOT_FILE,
00435               SVN_ERR_FS_CATEGORY_START + 17,
00436               "Name does not refer to a filesystem file")
00437 
00438   SVN_ERRDEF (SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
00439               SVN_ERR_FS_CATEGORY_START + 18,
00440               "Name is not a single path component")
00441 
00442   SVN_ERRDEF (SVN_ERR_FS_NOT_MUTABLE,
00443               SVN_ERR_FS_CATEGORY_START + 19,
00444               "Attempt to change immutable filesystem node")
00445 
00446   SVN_ERRDEF (SVN_ERR_FS_ALREADY_EXISTS,
00447               SVN_ERR_FS_CATEGORY_START + 20,
00448               "Item already exists in filesystem")
00449 
00450   SVN_ERRDEF (SVN_ERR_FS_ROOT_DIR,
00451               SVN_ERR_FS_CATEGORY_START + 21,
00452               "Attempt to remove or recreate fs root dir")
00453 
00454   SVN_ERRDEF (SVN_ERR_FS_NOT_TXN_ROOT,
00455               SVN_ERR_FS_CATEGORY_START + 22,
00456               "Object is not a transaction root")
00457 
00458   SVN_ERRDEF (SVN_ERR_FS_NOT_REVISION_ROOT,
00459               SVN_ERR_FS_CATEGORY_START + 23,
00460               "Object is not a revision root")
00461 
00462   SVN_ERRDEF (SVN_ERR_FS_CONFLICT,
00463               SVN_ERR_FS_CATEGORY_START + 24,
00464               "Merge conflict during commit")
00465 
00466   SVN_ERRDEF (SVN_ERR_FS_REP_CHANGED,
00467               SVN_ERR_FS_CATEGORY_START + 25,
00468               "A representation vanished or changed between reads")
00469 
00470   SVN_ERRDEF (SVN_ERR_FS_REP_NOT_MUTABLE,
00471               SVN_ERR_FS_CATEGORY_START + 26,
00472               "Tried to change an immutable representation")
00473 
00474   SVN_ERRDEF (SVN_ERR_FS_MALFORMED_SKEL,
00475               SVN_ERR_FS_CATEGORY_START + 27,
00476               "Malformed skeleton data")
00477 
00478   SVN_ERRDEF (SVN_ERR_FS_TXN_OUT_OF_DATE,
00479               SVN_ERR_FS_CATEGORY_START + 28,
00480               "Transaction is out of date")
00481 
00482   SVN_ERRDEF (SVN_ERR_FS_BERKELEY_DB,
00483               SVN_ERR_FS_CATEGORY_START + 29,
00484               "Berkeley DB error")
00485 
00486   SVN_ERRDEF (SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
00487               SVN_ERR_FS_CATEGORY_START + 30,
00488               "Berkeley DB deadlock error")
00489 
00490   SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_DEAD,
00491               SVN_ERR_FS_CATEGORY_START + 31,
00492               "Transaction is dead")
00493 
00494   SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_NOT_DEAD,
00495               SVN_ERR_FS_CATEGORY_START + 32,
00496               "Transaction is not dead")
00497 
00498   /* @since New in 1.1. */
00499   SVN_ERRDEF (SVN_ERR_FS_UNKNOWN_FS_TYPE,
00500               SVN_ERR_FS_CATEGORY_START + 33,
00501               "Unknown FS type")
00502 
00503   /* repos errors */
00504 
00505   SVN_ERRDEF (SVN_ERR_REPOS_LOCKED,
00506               SVN_ERR_REPOS_CATEGORY_START + 0,
00507               "The repository is locked, perhaps for db recovery")
00508 
00509   SVN_ERRDEF (SVN_ERR_REPOS_HOOK_FAILURE,
00510               SVN_ERR_REPOS_CATEGORY_START + 1,
00511               "A repository hook failed")
00512 
00513   SVN_ERRDEF (SVN_ERR_REPOS_BAD_ARGS,
00514               SVN_ERR_REPOS_CATEGORY_START + 2,
00515               "Incorrect arguments supplied")
00516 
00517   SVN_ERRDEF (SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
00518               SVN_ERR_REPOS_CATEGORY_START + 3,
00519               "A report cannot be generated because no data was supplied")
00520 
00521   SVN_ERRDEF (SVN_ERR_REPOS_BAD_REVISION_REPORT,
00522               SVN_ERR_REPOS_CATEGORY_START + 4,
00523               "Bogus revision report")
00524  
00525   SVN_ERRDEF (SVN_ERR_REPOS_UNSUPPORTED_VERSION,
00526               SVN_ERR_REPOS_CATEGORY_START + 5,
00527               "Unsupported repository version")
00528 
00529   SVN_ERRDEF (SVN_ERR_REPOS_DISABLED_FEATURE,
00530               SVN_ERR_REPOS_CATEGORY_START + 6,
00531               "Disabled repository feature")
00532 
00533   SVN_ERRDEF (SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
00534               SVN_ERR_REPOS_CATEGORY_START + 7,
00535               "Error running post-commit hook")
00536 
00537   /* generic RA errors */
00538 
00539   SVN_ERRDEF (SVN_ERR_RA_ILLEGAL_URL,
00540               SVN_ERR_RA_CATEGORY_START + 0,
00541               "Bad URL passed to RA layer")
00542 
00543   SVN_ERRDEF (SVN_ERR_RA_NOT_AUTHORIZED,
00544               SVN_ERR_RA_CATEGORY_START + 1,
00545               "Authorization failed")
00546 
00547   SVN_ERRDEF (SVN_ERR_RA_UNKNOWN_AUTH,
00548               SVN_ERR_RA_CATEGORY_START + 2,
00549               "Unknown authorization method")
00550 
00551   SVN_ERRDEF (SVN_ERR_RA_NOT_IMPLEMENTED,
00552               SVN_ERR_RA_CATEGORY_START + 3,
00553               "Repository access method not implemented")
00554 
00555   SVN_ERRDEF (SVN_ERR_RA_OUT_OF_DATE,
00556               SVN_ERR_RA_CATEGORY_START + 4,
00557               "Item is out-of-date")
00558 
00559   SVN_ERRDEF (SVN_ERR_RA_NO_REPOS_UUID,
00560               SVN_ERR_RA_CATEGORY_START + 5,
00561               "Repository has no UUID")
00562 
00563   SVN_ERRDEF (SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
00564               SVN_ERR_RA_CATEGORY_START + 6,
00565               "Unsupported RA plugin ABI version")
00566 
00567   /* ra_dav errors */
00568 
00569   SVN_ERRDEF (SVN_ERR_RA_DAV_SOCK_INIT,
00570               SVN_ERR_RA_DAV_CATEGORY_START + 0,
00571               "RA layer failed to init socket layer")
00572 
00573   SVN_ERRDEF (SVN_ERR_RA_DAV_CREATING_REQUEST,
00574               SVN_ERR_RA_DAV_CATEGORY_START + 1,
00575               "RA layer failed to create HTTP request")
00576 
00577   SVN_ERRDEF (SVN_ERR_RA_DAV_REQUEST_FAILED,
00578               SVN_ERR_RA_DAV_CATEGORY_START + 2,
00579               "RA layer request failed")
00580 
00581   SVN_ERRDEF (SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
00582               SVN_ERR_RA_DAV_CATEGORY_START + 3,
00583               "RA layer didn't receive requested OPTIONS info")
00584     
00585   SVN_ERRDEF (SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
00586               SVN_ERR_RA_DAV_CATEGORY_START + 4,
00587               "RA layer failed to fetch properties")
00588 
00589   SVN_ERRDEF (SVN_ERR_RA_DAV_ALREADY_EXISTS,
00590               SVN_ERR_RA_DAV_CATEGORY_START + 5,
00591               "RA layer file already exists")
00592 
00593   SVN_ERRDEF (SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
00594               SVN_ERR_RA_DAV_CATEGORY_START + 6,
00595               "Invalid configuration value")
00596 
00597   SVN_ERRDEF (SVN_ERR_RA_DAV_PATH_NOT_FOUND,
00598               SVN_ERR_RA_DAV_CATEGORY_START + 7,
00599               "HTTP Path Not Found")
00600 
00601   SVN_ERRDEF (SVN_ERR_RA_DAV_PROPPATCH_FAILED,
00602               SVN_ERR_RA_DAV_CATEGORY_START + 8,
00603               "Failed to excute WebDAV PROPPATCH")
00604 
00605 
00606   /* ra_local errors */
00607   
00608   SVN_ERRDEF (SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
00609               SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
00610               "Couldn't find a repository")
00611        
00612   SVN_ERRDEF (SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
00613               SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
00614               "Couldn't open a repository")
00615   /* ra_svn errors */
00616 
00617   SVN_ERRDEF (SVN_ERR_RA_SVN_CMD_ERR,
00618               SVN_ERR_RA_SVN_CATEGORY_START + 0,
00619               "Special code for wrapping server errors to report to client")
00620 
00621   SVN_ERRDEF (SVN_ERR_RA_SVN_UNKNOWN_CMD,
00622               SVN_ERR_RA_SVN_CATEGORY_START + 1,
00623               "Unknown svn protocol command")
00624 
00625   SVN_ERRDEF (SVN_ERR_RA_SVN_CONNECTION_CLOSED,
00626               SVN_ERR_RA_SVN_CATEGORY_START + 2,
00627               "Network connection closed unexpectedly")
00628 
00629   SVN_ERRDEF (SVN_ERR_RA_SVN_IO_ERROR,
00630               SVN_ERR_RA_SVN_CATEGORY_START + 3,
00631               "Network read/write error")
00632 
00633   SVN_ERRDEF (SVN_ERR_RA_SVN_MALFORMED_DATA,
00634               SVN_ERR_RA_SVN_CATEGORY_START + 4,
00635               "Malformed network data")
00636 
00637   SVN_ERRDEF (SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
00638               SVN_ERR_RA_SVN_CATEGORY_START + 5,
00639               "Couldn't find a repository")
00640 
00641   SVN_ERRDEF (SVN_ERR_RA_SVN_BAD_VERSION,
00642               SVN_ERR_RA_SVN_CATEGORY_START + 6,
00643               "Client/server version mismatch")
00644 
00645   /* libsvn_auth errors */
00646 
00647        /* this error can be used when an auth provider doesn't have
00648           the creds, but no other "real" error occurred. */
00649   SVN_ERRDEF (SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
00650               SVN_ERR_AUTHN_CATEGORY_START + 0,
00651               "Credential data unavailable")
00652 
00653   SVN_ERRDEF (SVN_ERR_AUTHN_NO_PROVIDER,
00654               SVN_ERR_AUTHN_CATEGORY_START + 1,
00655               "No authentication provider available")
00656 
00657   SVN_ERRDEF (SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
00658               SVN_ERR_AUTHN_CATEGORY_START + 2,
00659               "All authentication providers exhausted")
00660 
00661   SVN_ERRDEF (SVN_ERR_AUTHN_CREDS_NOT_SAVED,
00662               SVN_ERR_AUTHN_CATEGORY_START + 3,
00663               "All authentication providers exhausted")
00664 
00665   /* authorization errors */
00666 
00667   SVN_ERRDEF (SVN_ERR_AUTHZ_ROOT_UNREADABLE,
00668               SVN_ERR_AUTHZ_CATEGORY_START + 0,
00669               "Read access denied for root of edit")
00670 
00671   /* @since New in 1.1. */
00672   SVN_ERRDEF (SVN_ERR_AUTHZ_UNREADABLE,
00673               SVN_ERR_AUTHZ_CATEGORY_START + 1,
00674               "Item is not readable.")
00675 
00676   /* @since New in 1.1. */
00677   SVN_ERRDEF (SVN_ERR_AUTHZ_PARTIALLY_READABLE,
00678               SVN_ERR_AUTHZ_CATEGORY_START + 2,
00679               "Item is partially readable.")
00680 
00681 
00682   /* svndiff errors */
00683 
00684   SVN_ERRDEF (SVN_ERR_SVNDIFF_INVALID_HEADER,
00685               SVN_ERR_SVNDIFF_CATEGORY_START + 0,
00686               "Svndiff data has invalid header")
00687 
00688   SVN_ERRDEF (SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
00689               SVN_ERR_SVNDIFF_CATEGORY_START + 1,
00690               "Svndiff data contains corrupt window")
00691 
00692   SVN_ERRDEF (SVN_ERR_SVNDIFF_BACKWARD_VIEW,
00693               SVN_ERR_SVNDIFF_CATEGORY_START + 2,
00694               "Svndiff data contains backward-sliding source view")
00695 
00696   SVN_ERRDEF (SVN_ERR_SVNDIFF_INVALID_OPS,
00697               SVN_ERR_SVNDIFF_CATEGORY_START + 3,
00698               "Svndiff data contains invalid instruction")
00699 
00700   SVN_ERRDEF (SVN_ERR_SVNDIFF_UNEXPECTED_END,
00701               SVN_ERR_SVNDIFF_CATEGORY_START + 4,
00702               "Svndiff data ends unexpectedly")
00703 
00704   /* mod_dav_svn errors */
00705 
00706   SVN_ERRDEF (SVN_ERR_APMOD_MISSING_PATH_TO_FS,
00707               SVN_ERR_APMOD_CATEGORY_START + 0,
00708               "Apache has no path to an SVN filesystem")
00709 
00710   SVN_ERRDEF (SVN_ERR_APMOD_MALFORMED_URI,
00711               SVN_ERR_APMOD_CATEGORY_START + 1,
00712               "Apache got a malformed URI")
00713 
00714   SVN_ERRDEF (SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
00715               SVN_ERR_APMOD_CATEGORY_START + 2,
00716               "Activity not found")
00717 
00718   SVN_ERRDEF (SVN_ERR_APMOD_BAD_BASELINE,
00719               SVN_ERR_APMOD_CATEGORY_START + 3,
00720               "Baseline incorrect")
00721 
00722   SVN_ERRDEF (SVN_ERR_APMOD_CONNECTION_ABORTED,
00723               SVN_ERR_APMOD_CATEGORY_START + 4,
00724               "Input/output error")
00725 
00726   /* libsvn_client errors */
00727 
00728   SVN_ERRDEF (SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
00729               SVN_ERR_CLIENT_CATEGORY_START + 0,
00730               "A path under version control is needed for this operation")
00731 
00732   SVN_ERRDEF (SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
00733               SVN_ERR_CLIENT_CATEGORY_START + 1,
00734               "Repository access is needed for this operation")
00735 
00736   SVN_ERRDEF (SVN_ERR_CLIENT_BAD_REVISION,
00737               SVN_ERR_CLIENT_CATEGORY_START + 2,
00738               "Bogus revision information given")
00739 
00740   SVN_ERRDEF (SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
00741               SVN_ERR_CLIENT_CATEGORY_START + 3,
00742               "Attempting to commit to a URL more than once")
00743 
00744   SVN_ERRDEF (SVN_ERR_CLIENT_IS_BINARY_FILE,
00745               SVN_ERR_CLIENT_CATEGORY_START + 4,
00746               "Operation does not apply to binary file")
00747 
00748        /*### SVN_PROP_EXTERNALS needed to be replaced with "svn:externals"
00749          in order to get gettext translatable strings */
00750   SVN_ERRDEF (SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
00751               SVN_ERR_CLIENT_CATEGORY_START + 5,
00752               "Format of an svn:externals property was invalid")
00753 
00754   SVN_ERRDEF (SVN_ERR_CLIENT_MODIFIED,
00755               SVN_ERR_CLIENT_CATEGORY_START + 6,
00756               "Attempting restricted operation for modified resource")
00757 
00758   SVN_ERRDEF (SVN_ERR_CLIENT_IS_DIRECTORY,
00759               SVN_ERR_CLIENT_CATEGORY_START + 7,
00760               "Operation does not apply to directory")
00761 
00762   SVN_ERRDEF (SVN_ERR_CLIENT_REVISION_RANGE,
00763               SVN_ERR_CLIENT_CATEGORY_START + 8,
00764               "Revision range is not allowed")
00765 
00766   SVN_ERRDEF (SVN_ERR_CLIENT_INVALID_RELOCATION,
00767               SVN_ERR_CLIENT_CATEGORY_START + 9,
00768               "Inter-repository relocation not allowed")
00769 
00770   SVN_ERRDEF (SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
00771               SVN_ERR_CLIENT_CATEGORY_START + 10,
00772               "Author name cannot contain a newline")
00773 
00774   SVN_ERRDEF (SVN_ERR_CLIENT_PROPERTY_NAME,
00775               SVN_ERR_CLIENT_CATEGORY_START + 11,
00776               "Bad property name")
00777 
00778   /* @since New in 1.1. */
00779   SVN_ERRDEF (SVN_ERR_CLIENT_UNRELATED_RESOURCES,
00780               SVN_ERR_CLIENT_CATEGORY_START + 12,
00781               "Two versioned resources are unrelated")
00782 
00783 
00784   /* misc errors */
00785 
00786   SVN_ERRDEF (SVN_ERR_BASE,
00787               SVN_ERR_MISC_CATEGORY_START + 0,
00788               "A problem occurred; see later errors for details")
00789 
00790   SVN_ERRDEF (SVN_ERR_PLUGIN_LOAD_FAILURE,
00791               SVN_ERR_MISC_CATEGORY_START + 1,
00792               "Failure loading plugin")
00793 
00794   SVN_ERRDEF (SVN_ERR_MALFORMED_FILE,
00795               SVN_ERR_MISC_CATEGORY_START + 2,
00796               "Malformed file")
00797 
00798   SVN_ERRDEF (SVN_ERR_INCOMPLETE_DATA,
00799               SVN_ERR_MISC_CATEGORY_START + 3,
00800               "Incomplete data")
00801 
00802   SVN_ERRDEF (SVN_ERR_INCORRECT_PARAMS,
00803               SVN_ERR_MISC_CATEGORY_START + 4,
00804               "Incorrect parameters given")
00805 
00806   SVN_ERRDEF (SVN_ERR_UNVERSIONED_RESOURCE,
00807               SVN_ERR_MISC_CATEGORY_START + 5,
00808               "Tried a versioning operation on an unversioned resource")
00809 
00810   SVN_ERRDEF (SVN_ERR_TEST_FAILED,
00811               SVN_ERR_MISC_CATEGORY_START + 6,
00812               "Test failed")
00813        
00814   SVN_ERRDEF (SVN_ERR_UNSUPPORTED_FEATURE,
00815               SVN_ERR_MISC_CATEGORY_START + 7,
00816               "Trying to use an unsupported feature")
00817 
00818   SVN_ERRDEF (SVN_ERR_BAD_PROP_KIND,
00819               SVN_ERR_MISC_CATEGORY_START + 8,
00820               "Unexpected or unknown property kind")
00821 
00822   SVN_ERRDEF (SVN_ERR_ILLEGAL_TARGET,
00823               SVN_ERR_MISC_CATEGORY_START + 9,
00824               "Illegal target for the requested operation")
00825 
00826   SVN_ERRDEF (SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
00827               SVN_ERR_MISC_CATEGORY_START + 10,
00828               "MD5 checksum is missing")
00829 
00830   SVN_ERRDEF (SVN_ERR_DIR_NOT_EMPTY,
00831               SVN_ERR_MISC_CATEGORY_START + 11,
00832               "Directory needs to be empty but is not")
00833 
00834   SVN_ERRDEF (SVN_ERR_EXTERNAL_PROGRAM,
00835               SVN_ERR_MISC_CATEGORY_START + 12,
00836               "Error calling external program")
00837 
00838   SVN_ERRDEF (SVN_ERR_SWIG_PY_EXCEPTION_SET,
00839               SVN_ERR_MISC_CATEGORY_START + 13,
00840               "Python exception has been set with the error")
00841 
00842   SVN_ERRDEF (SVN_ERR_CHECKSUM_MISMATCH,
00843               SVN_ERR_MISC_CATEGORY_START + 14,
00844               "A checksum mismatch occurred")
00845 
00846   SVN_ERRDEF (SVN_ERR_CANCELLED,
00847               SVN_ERR_MISC_CATEGORY_START + 15,
00848               "The operation was interrupted")
00849 
00850   SVN_ERRDEF (SVN_ERR_INVALID_DIFF_OPTION,
00851               SVN_ERR_MISC_CATEGORY_START + 16,
00852               "The specified diff option is not supported")
00853 
00854   SVN_ERRDEF (SVN_ERR_PROPERTY_NOT_FOUND,
00855               SVN_ERR_MISC_CATEGORY_START + 17,
00856               "Property not found")
00857 
00858   SVN_ERRDEF (SVN_ERR_NO_AUTH_FILE_PATH,
00859               SVN_ERR_MISC_CATEGORY_START + 18,
00860               "No auth file path available")
00861 
00862   /* @since New in 1.1. */
00863   SVN_ERRDEF (SVN_ERR_VERSION_MISMATCH,
00864               SVN_ERR_MISC_CATEGORY_START + 19,
00865               "Incompatible library version")
00866 
00867   /* command-line client errors */
00868 
00869   SVN_ERRDEF (SVN_ERR_CL_ARG_PARSING_ERROR,
00870               SVN_ERR_CL_CATEGORY_START + 0,
00871               "Client error in parsing arguments")
00872 
00873   SVN_ERRDEF (SVN_ERR_CL_INSUFFICIENT_ARGS,
00874               SVN_ERR_CL_CATEGORY_START + 1,
00875               "Not enough args provided")
00876 
00877   SVN_ERRDEF (SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
00878               SVN_ERR_CL_CATEGORY_START + 2,
00879               "Mutually exclusive arguments specified")
00880 
00881   SVN_ERRDEF (SVN_ERR_CL_ADM_DIR_RESERVED,
00882               SVN_ERR_CL_CATEGORY_START + 3,
00883               "Attempted command in administrative dir")
00884 
00885   SVN_ERRDEF (SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
00886               SVN_ERR_CL_CATEGORY_START + 4,
00887               "The log message file is under version control")
00888 
00889   SVN_ERRDEF (SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
00890               SVN_ERR_CL_CATEGORY_START + 5,
00891               "The log message is a pathname")
00892 
00893   SVN_ERRDEF (SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
00894               SVN_ERR_CL_CATEGORY_START + 6,
00895               "Committing in directory scheduled for addition")
00896 
00897   SVN_ERRDEF (SVN_ERR_CL_NO_EXTERNAL_EDITOR,
00898               SVN_ERR_CL_CATEGORY_START + 7,
00899               "No external editor available")
00900 
00901   SVN_ERRDEF (SVN_ERR_CL_BAD_LOG_MESSAGE,
00902               SVN_ERR_CL_CATEGORY_START + 8,
00903               "Something is wrong with the log message's contents")
00904 
00905 SVN_ERROR_END
00906 
00907 
00908 #undef SVN_ERROR_START
00909 #undef SVN_ERRDEF
00910 #undef SVN_ERROR_END
00911 
00912 #ifdef __cplusplus
00913 }
00914 #endif /* __cplusplus */
00915 
00916 #endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */

Generated on Sat Apr 2 00:45:59 2005 for Subversion by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002