Main Page   Modules   Data Structures   File List   Data Fields   Globals  

svn_error_codes.h

Go to the documentation of this file.
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   /* stream errors */
00219 
00220   SVN_ERRDEF (SVN_ERR_STREAM_UNEXPECTED_EOF,
00221               SVN_ERR_STREAM_CATEGORY_START + 0,
00222               "Unexpected EOF on stream")
00223 
00224   SVN_ERRDEF (SVN_ERR_STREAM_MALFORMED_DATA,
00225               SVN_ERR_STREAM_CATEGORY_START + 1,
00226               "Malformed stream data")
00227 
00228   SVN_ERRDEF (SVN_ERR_STREAM_UNRECOGNIZED_DATA,
00229               SVN_ERR_STREAM_CATEGORY_START + 2,
00230               "Unrecognized stream data")
00231 
00232   /* node errors */
00233 
00234   SVN_ERRDEF (SVN_ERR_NODE_UNKNOWN_KIND,
00235               SVN_ERR_NODE_CATEGORY_START + 0,
00236               "Unknown svn_node_kind")
00237 
00238   SVN_ERRDEF (SVN_ERR_NODE_UNEXPECTED_KIND,
00239               SVN_ERR_NODE_CATEGORY_START + 1,
00240               "Unexpected node kind found")
00241 
00242   /* entry errors */
00243 
00244   SVN_ERRDEF (SVN_ERR_ENTRY_NOT_FOUND,
00245               SVN_ERR_ENTRY_CATEGORY_START + 0,
00246               "Can't find an entry")
00247 
00248   /* UNUSED error slot:                    + 1 */
00249 
00250   SVN_ERRDEF (SVN_ERR_ENTRY_EXISTS,
00251               SVN_ERR_ENTRY_CATEGORY_START + 2,
00252               "Entry already exists")
00253 
00254   SVN_ERRDEF (SVN_ERR_ENTRY_MISSING_REVISION,
00255               SVN_ERR_ENTRY_CATEGORY_START + 3,
00256               "Entry has no revision")
00257 
00258   SVN_ERRDEF (SVN_ERR_ENTRY_MISSING_URL,
00259               SVN_ERR_ENTRY_CATEGORY_START + 4,
00260               "Entry has no URL")
00261 
00262   SVN_ERRDEF (SVN_ERR_ENTRY_ATTRIBUTE_INVALID,
00263               SVN_ERR_ENTRY_CATEGORY_START + 5,
00264               "Entry has an invalid attribute")
00265 
00266   /* wc errors */
00267 
00268   SVN_ERRDEF (SVN_ERR_WC_OBSTRUCTED_UPDATE,
00269               SVN_ERR_WC_CATEGORY_START + 0,
00270               "Obstructed update")
00271 
00272   SVN_ERRDEF (SVN_ERR_WC_UNWIND_MISMATCH,
00273               SVN_ERR_WC_CATEGORY_START + 1,
00274               "Mismatch popping the WC unwind stack")
00275 
00276   SVN_ERRDEF (SVN_ERR_WC_UNWIND_EMPTY,
00277               SVN_ERR_WC_CATEGORY_START + 2,
00278               "Attempt to pop empty WC unwind stack")
00279 
00280   SVN_ERRDEF (SVN_ERR_WC_UNWIND_NOT_EMPTY,
00281               SVN_ERR_WC_CATEGORY_START + 3,
00282               "Attempt to unlock with non-empty unwind stack")
00283 
00284   SVN_ERRDEF (SVN_ERR_WC_LOCKED,
00285               SVN_ERR_WC_CATEGORY_START + 4,
00286               "Attempted to lock an already-locked dir")
00287 
00288   SVN_ERRDEF (SVN_ERR_WC_NOT_LOCKED,
00289               SVN_ERR_WC_CATEGORY_START + 5,
00290               "Working copy not locked")
00291 
00292   SVN_ERRDEF (SVN_ERR_WC_INVALID_LOCK,
00293               SVN_ERR_WC_CATEGORY_START + 6,
00294               "Invalid lock")
00295 
00296   SVN_ERRDEF (SVN_ERR_WC_NOT_DIRECTORY,
00297               SVN_ERR_WC_CATEGORY_START + 7,
00298               "Path is not a working copy directory")
00299 
00300   SVN_ERRDEF (SVN_ERR_WC_NOT_FILE,
00301               SVN_ERR_WC_CATEGORY_START + 8,
00302               "Path is not a working copy file")
00303 
00304   SVN_ERRDEF (SVN_ERR_WC_BAD_ADM_LOG,
00305               SVN_ERR_WC_CATEGORY_START + 9,
00306               "Problem running log")
00307 
00308   SVN_ERRDEF (SVN_ERR_WC_PATH_NOT_FOUND,
00309               SVN_ERR_WC_CATEGORY_START + 10,
00310               "Can't find a working copy path")
00311 
00312   SVN_ERRDEF (SVN_ERR_WC_NOT_UP_TO_DATE,
00313               SVN_ERR_WC_CATEGORY_START + 11,
00314               "Working copy is not up-to-date")
00315 
00316   SVN_ERRDEF (SVN_ERR_WC_LEFT_LOCAL_MOD,
00317               SVN_ERR_WC_CATEGORY_START + 12,
00318               "Left locally modified or unversioned files")
00319 
00320   SVN_ERRDEF (SVN_ERR_WC_SCHEDULE_CONFLICT,
00321               SVN_ERR_WC_CATEGORY_START + 13,
00322               "Unmergeable scheduling requested on an entry")
00323 
00324   SVN_ERRDEF (SVN_ERR_WC_PATH_FOUND,
00325               SVN_ERR_WC_CATEGORY_START + 14,
00326               "Found a working copy path")
00327 
00328   SVN_ERRDEF (SVN_ERR_WC_FOUND_CONFLICT,
00329               SVN_ERR_WC_CATEGORY_START + 15,
00330               "A conflict in the working copy obstructs the current operation")
00331 
00332   SVN_ERRDEF (SVN_ERR_WC_CORRUPT,
00333               SVN_ERR_WC_CATEGORY_START + 16,
00334               "Working copy is corrupt")
00335 
00336   SVN_ERRDEF (SVN_ERR_WC_CORRUPT_TEXT_BASE,
00337               SVN_ERR_WC_CATEGORY_START + 17,
00338               "Working copy text base is corrupt")
00339 
00340   SVN_ERRDEF (SVN_ERR_WC_NODE_KIND_CHANGE,
00341               SVN_ERR_WC_CATEGORY_START + 18,
00342               "Cannot change node kind")
00343 
00344   SVN_ERRDEF (SVN_ERR_WC_INVALID_OP_ON_CWD,
00345               SVN_ERR_WC_CATEGORY_START + 19,
00346               "Invalid operation on the current working directory")  
00347 
00348   SVN_ERRDEF (SVN_ERR_WC_BAD_ADM_LOG_START,
00349               SVN_ERR_WC_CATEGORY_START + 20,
00350               "Problem on first log entry in a working copy")
00351 
00352   SVN_ERRDEF (SVN_ERR_WC_UNSUPPORTED_FORMAT,
00353               SVN_ERR_WC_CATEGORY_START + 21,
00354               "Unsupported working copy format")  
00355 
00356   SVN_ERRDEF (SVN_ERR_WC_BAD_PATH,
00357               SVN_ERR_WC_CATEGORY_START + 22,
00358               "Path syntax not supported in this context")  
00359 
00360   /* fs errors */
00361 
00362   SVN_ERRDEF (SVN_ERR_FS_GENERAL,
00363               SVN_ERR_FS_CATEGORY_START + 0,
00364               "General filesystem error")
00365 
00366   SVN_ERRDEF (SVN_ERR_FS_CLEANUP,
00367               SVN_ERR_FS_CATEGORY_START + 1,
00368               "Error closing filesystem")
00369 
00370   SVN_ERRDEF (SVN_ERR_FS_ALREADY_OPEN,
00371               SVN_ERR_FS_CATEGORY_START + 2,
00372               "Filesystem is already open")
00373 
00374   SVN_ERRDEF (SVN_ERR_FS_NOT_OPEN,
00375               SVN_ERR_FS_CATEGORY_START + 3,
00376               "Filesystem is not open")
00377 
00378   SVN_ERRDEF (SVN_ERR_FS_CORRUPT,
00379               SVN_ERR_FS_CATEGORY_START + 4,
00380               "Filesystem is corrupt")
00381 
00382   SVN_ERRDEF (SVN_ERR_FS_PATH_SYNTAX,
00383               SVN_ERR_FS_CATEGORY_START + 5,
00384               "Invalid filesystem path syntax")
00385 
00386   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_REVISION,
00387               SVN_ERR_FS_CATEGORY_START + 6,
00388               "Invalid filesystem revision number")
00389 
00390   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_TRANSACTION,
00391               SVN_ERR_FS_CATEGORY_START + 7,
00392               "Invalid filesystem transaction name")
00393 
00394   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_ENTRY,
00395               SVN_ERR_FS_CATEGORY_START + 8,
00396               "Filesystem directory has no such entry")
00397 
00398   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_REPRESENTATION,
00399               SVN_ERR_FS_CATEGORY_START + 9,
00400               "Filesystem has no such representation")
00401 
00402   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_STRING,
00403               SVN_ERR_FS_CATEGORY_START + 10,
00404               "Filesystem has no such string")
00405 
00406   SVN_ERRDEF (SVN_ERR_FS_NO_SUCH_COPY,
00407               SVN_ERR_FS_CATEGORY_START + 11,
00408               "Filesystem has no such copy")
00409 
00410   SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_NOT_MUTABLE,
00411               SVN_ERR_FS_CATEGORY_START + 12,
00412               "The specified transaction is not mutable")
00413 
00414   SVN_ERRDEF (SVN_ERR_FS_NOT_FOUND,
00415               SVN_ERR_FS_CATEGORY_START + 13,
00416               "Filesystem has no item")
00417 
00418   SVN_ERRDEF (SVN_ERR_FS_ID_NOT_FOUND,
00419               SVN_ERR_FS_CATEGORY_START + 14,
00420               "Filesystem has no such node-rev-id")
00421 
00422   SVN_ERRDEF (SVN_ERR_FS_NOT_ID,
00423               SVN_ERR_FS_CATEGORY_START + 15,
00424               "String does not represent a node or node-rev-id")
00425 
00426   SVN_ERRDEF (SVN_ERR_FS_NOT_DIRECTORY,
00427               SVN_ERR_FS_CATEGORY_START + 16,
00428               "Name does not refer to a filesystem directory")
00429 
00430   SVN_ERRDEF (SVN_ERR_FS_NOT_FILE,
00431               SVN_ERR_FS_CATEGORY_START + 17,
00432               "Name does not refer to a filesystem file")
00433 
00434   SVN_ERRDEF (SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT,
00435               SVN_ERR_FS_CATEGORY_START + 18,
00436               "Name is not a single path component")
00437 
00438   SVN_ERRDEF (SVN_ERR_FS_NOT_MUTABLE,
00439               SVN_ERR_FS_CATEGORY_START + 19,
00440               "Attempt to change immutable filesystem node")
00441 
00442   SVN_ERRDEF (SVN_ERR_FS_ALREADY_EXISTS,
00443               SVN_ERR_FS_CATEGORY_START + 20,
00444               "Item already exists in filesystem")
00445 
00446   SVN_ERRDEF (SVN_ERR_FS_ROOT_DIR,
00447               SVN_ERR_FS_CATEGORY_START + 21,
00448               "Attempt to remove or recreate fs root dir")
00449 
00450   SVN_ERRDEF (SVN_ERR_FS_NOT_TXN_ROOT,
00451               SVN_ERR_FS_CATEGORY_START + 22,
00452               "Object is not a transaction root")
00453 
00454   SVN_ERRDEF (SVN_ERR_FS_NOT_REVISION_ROOT,
00455               SVN_ERR_FS_CATEGORY_START + 23,
00456               "Object is not a revision root")
00457 
00458   SVN_ERRDEF (SVN_ERR_FS_CONFLICT,
00459               SVN_ERR_FS_CATEGORY_START + 24,
00460               "Merge conflict during commit")
00461 
00462   SVN_ERRDEF (SVN_ERR_FS_REP_CHANGED,
00463               SVN_ERR_FS_CATEGORY_START + 25,
00464               "A representation vanished or changed between reads")
00465 
00466   SVN_ERRDEF (SVN_ERR_FS_REP_NOT_MUTABLE,
00467               SVN_ERR_FS_CATEGORY_START + 26,
00468               "Tried to change an immutable representation")
00469 
00470   SVN_ERRDEF (SVN_ERR_FS_MALFORMED_SKEL,
00471               SVN_ERR_FS_CATEGORY_START + 27,
00472               "Malformed skeleton data")
00473 
00474   SVN_ERRDEF (SVN_ERR_FS_TXN_OUT_OF_DATE,
00475               SVN_ERR_FS_CATEGORY_START + 28,
00476               "Transaction is out of date")
00477 
00478   SVN_ERRDEF (SVN_ERR_FS_BERKELEY_DB,
00479               SVN_ERR_FS_CATEGORY_START + 29,
00480               "Berkeley DB error")
00481 
00482   SVN_ERRDEF (SVN_ERR_FS_BERKELEY_DB_DEADLOCK,
00483               SVN_ERR_FS_CATEGORY_START + 30,
00484               "Berkeley DB deadlock error")
00485 
00486   SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_DEAD,
00487               SVN_ERR_FS_CATEGORY_START + 31,
00488               "Transaction is dead")
00489 
00490   SVN_ERRDEF (SVN_ERR_FS_TRANSACTION_NOT_DEAD,
00491               SVN_ERR_FS_CATEGORY_START + 32,
00492               "Transaction is not dead")
00493 
00494   /* repos errors */
00495 
00496   SVN_ERRDEF (SVN_ERR_REPOS_LOCKED,
00497               SVN_ERR_REPOS_CATEGORY_START + 0,
00498               "The repository is locked, perhaps for db recovery")
00499 
00500   SVN_ERRDEF (SVN_ERR_REPOS_HOOK_FAILURE,
00501               SVN_ERR_REPOS_CATEGORY_START + 1,
00502               "A repository hook failed")
00503 
00504   SVN_ERRDEF (SVN_ERR_REPOS_BAD_ARGS,
00505               SVN_ERR_REPOS_CATEGORY_START + 2,
00506               "Incorrect arguments supplied")
00507 
00508   SVN_ERRDEF (SVN_ERR_REPOS_NO_DATA_FOR_REPORT,
00509               SVN_ERR_REPOS_CATEGORY_START + 3,
00510               "A report cannot be generated because no data was supplied")
00511 
00512   SVN_ERRDEF (SVN_ERR_REPOS_BAD_REVISION_REPORT,
00513               SVN_ERR_REPOS_CATEGORY_START + 4,
00514               "Bogus revision report")
00515  
00516   SVN_ERRDEF (SVN_ERR_REPOS_UNSUPPORTED_VERSION,
00517               SVN_ERR_REPOS_CATEGORY_START + 5,
00518               "Unsupported repository version")
00519 
00520   SVN_ERRDEF (SVN_ERR_REPOS_DISABLED_FEATURE,
00521               SVN_ERR_REPOS_CATEGORY_START + 6,
00522               "Disabled repository feature")
00523 
00524   SVN_ERRDEF (SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED,
00525               SVN_ERR_REPOS_CATEGORY_START + 7,
00526               "Error running post-commit hook")
00527 
00528   /* generic RA errors */
00529 
00530   SVN_ERRDEF (SVN_ERR_RA_ILLEGAL_URL,
00531               SVN_ERR_RA_CATEGORY_START + 0,
00532               "Bad URL passed to RA layer")
00533 
00534   SVN_ERRDEF (SVN_ERR_RA_NOT_AUTHORIZED,
00535               SVN_ERR_RA_CATEGORY_START + 1,
00536               "Authorization failed")
00537 
00538   SVN_ERRDEF (SVN_ERR_RA_UNKNOWN_AUTH,
00539               SVN_ERR_RA_CATEGORY_START + 2,
00540               "Unknown authorization method")
00541 
00542   SVN_ERRDEF (SVN_ERR_RA_NOT_IMPLEMENTED,
00543               SVN_ERR_RA_CATEGORY_START + 3,
00544               "Repository access method not implemented")
00545 
00546   SVN_ERRDEF (SVN_ERR_RA_OUT_OF_DATE,
00547               SVN_ERR_RA_CATEGORY_START + 4,
00548               "Item is out-of-date")
00549 
00550   SVN_ERRDEF (SVN_ERR_RA_NO_REPOS_UUID,
00551               SVN_ERR_RA_CATEGORY_START + 5,
00552               "Repository has no UUID")
00553 
00554   SVN_ERRDEF (SVN_ERR_RA_UNSUPPORTED_ABI_VERSION,
00555               SVN_ERR_RA_CATEGORY_START + 6,
00556               "Unsupported RA plugin ABI version")
00557 
00558   /* ra_dav errors */
00559 
00560   SVN_ERRDEF (SVN_ERR_RA_DAV_SOCK_INIT,
00561               SVN_ERR_RA_DAV_CATEGORY_START + 0,
00562               "RA layer failed to init socket layer")
00563 
00564   SVN_ERRDEF (SVN_ERR_RA_DAV_CREATING_REQUEST,
00565               SVN_ERR_RA_DAV_CATEGORY_START + 1,
00566               "RA layer failed to create HTTP request")
00567 
00568   SVN_ERRDEF (SVN_ERR_RA_DAV_REQUEST_FAILED,
00569               SVN_ERR_RA_DAV_CATEGORY_START + 2,
00570               "RA layer request failed")
00571 
00572   SVN_ERRDEF (SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED,
00573               SVN_ERR_RA_DAV_CATEGORY_START + 3,
00574               "RA layer didn't receive requested OPTIONS info")
00575     
00576   SVN_ERRDEF (SVN_ERR_RA_DAV_PROPS_NOT_FOUND,
00577               SVN_ERR_RA_DAV_CATEGORY_START + 4,
00578               "RA layer failed to fetch properties")
00579 
00580   SVN_ERRDEF (SVN_ERR_RA_DAV_ALREADY_EXISTS,
00581               SVN_ERR_RA_DAV_CATEGORY_START + 5,
00582               "RA layer file already exists")
00583 
00584   SVN_ERRDEF (SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE,
00585               SVN_ERR_RA_DAV_CATEGORY_START + 6,
00586               "Invalid configuration value")
00587 
00588   SVN_ERRDEF (SVN_ERR_RA_DAV_PATH_NOT_FOUND,
00589               SVN_ERR_RA_DAV_CATEGORY_START + 7,
00590               "HTTP Path Not Found")
00591 
00592   SVN_ERRDEF (SVN_ERR_RA_DAV_PROPPATCH_FAILED,
00593               SVN_ERR_RA_DAV_CATEGORY_START + 8,
00594               "Failed to excute WebDAV PROPPATCH")
00595 
00596 
00597   /* ra_local errors */
00598   
00599   SVN_ERRDEF (SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND,
00600               SVN_ERR_RA_LOCAL_CATEGORY_START + 0,
00601               "Couldn't find a repository")
00602        
00603   SVN_ERRDEF (SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
00604               SVN_ERR_RA_LOCAL_CATEGORY_START + 1,
00605               "Couldn't open a repository")
00606   /* ra_svn errors */
00607 
00608   SVN_ERRDEF (SVN_ERR_RA_SVN_CMD_ERR,
00609               SVN_ERR_RA_SVN_CATEGORY_START + 0,
00610               "Special code for wrapping server errors to report to client")
00611 
00612   SVN_ERRDEF (SVN_ERR_RA_SVN_UNKNOWN_CMD,
00613               SVN_ERR_RA_SVN_CATEGORY_START + 1,
00614               "Unknown svn protocol command")
00615 
00616   SVN_ERRDEF (SVN_ERR_RA_SVN_CONNECTION_CLOSED,
00617               SVN_ERR_RA_SVN_CATEGORY_START + 2,
00618               "Network connection closed unexpectedly")
00619 
00620   SVN_ERRDEF (SVN_ERR_RA_SVN_IO_ERROR,
00621               SVN_ERR_RA_SVN_CATEGORY_START + 3,
00622               "Network read/write error")
00623 
00624   SVN_ERRDEF (SVN_ERR_RA_SVN_MALFORMED_DATA,
00625               SVN_ERR_RA_SVN_CATEGORY_START + 4,
00626               "Malformed network data")
00627 
00628   SVN_ERRDEF (SVN_ERR_RA_SVN_REPOS_NOT_FOUND,
00629               SVN_ERR_RA_SVN_CATEGORY_START + 5,
00630               "Couldn't find a repository")
00631 
00632   SVN_ERRDEF (SVN_ERR_RA_SVN_BAD_VERSION,
00633               SVN_ERR_RA_SVN_CATEGORY_START + 6,
00634               "Client/server version mismatch")
00635 
00636   /* libsvn_auth errors */
00637 
00638        /* this error can be used when an auth provider doesn't have
00639           the creds, but no other "real" error occurred. */
00640   SVN_ERRDEF (SVN_ERR_AUTHN_CREDS_UNAVAILABLE,
00641               SVN_ERR_AUTHN_CATEGORY_START + 0,
00642               "Credential data unavailable")
00643 
00644   SVN_ERRDEF (SVN_ERR_AUTHN_NO_PROVIDER,
00645               SVN_ERR_AUTHN_CATEGORY_START + 1,
00646               "No authentication provider available")
00647 
00648   SVN_ERRDEF (SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED,
00649               SVN_ERR_AUTHN_CATEGORY_START + 2,
00650               "All authentication providers exhausted")
00651 
00652   SVN_ERRDEF (SVN_ERR_AUTHN_CREDS_NOT_SAVED,
00653               SVN_ERR_AUTHN_CATEGORY_START + 3,
00654               "All authentication providers exhausted")
00655 
00656   /* authorization errors */
00657 
00658   SVN_ERRDEF (SVN_ERR_AUTHZ_ROOT_UNREADABLE,
00659               SVN_ERR_AUTHZ_CATEGORY_START + 0,
00660               "Read access denied for root of edit")
00661 
00662   /* svndiff errors */
00663 
00664   SVN_ERRDEF (SVN_ERR_SVNDIFF_INVALID_HEADER,
00665               SVN_ERR_SVNDIFF_CATEGORY_START + 0,
00666               "Svndiff data has invalid header")
00667 
00668   SVN_ERRDEF (SVN_ERR_SVNDIFF_CORRUPT_WINDOW,
00669               SVN_ERR_SVNDIFF_CATEGORY_START + 1,
00670               "Svndiff data contains corrupt window")
00671 
00672   SVN_ERRDEF (SVN_ERR_SVNDIFF_BACKWARD_VIEW,
00673               SVN_ERR_SVNDIFF_CATEGORY_START + 2,
00674               "Svndiff data contains backward-sliding source view")
00675 
00676   SVN_ERRDEF (SVN_ERR_SVNDIFF_INVALID_OPS,
00677               SVN_ERR_SVNDIFF_CATEGORY_START + 3,
00678               "Svndiff data contains invalid instruction")
00679 
00680   SVN_ERRDEF (SVN_ERR_SVNDIFF_UNEXPECTED_END,
00681               SVN_ERR_SVNDIFF_CATEGORY_START + 4,
00682               "Svndiff data ends unexpectedly")
00683 
00684   /* mod_dav_svn errors */
00685 
00686   SVN_ERRDEF (SVN_ERR_APMOD_MISSING_PATH_TO_FS,
00687               SVN_ERR_APMOD_CATEGORY_START + 0,
00688               "Apache has no path to an SVN filesystem")
00689 
00690   SVN_ERRDEF (SVN_ERR_APMOD_MALFORMED_URI,
00691               SVN_ERR_APMOD_CATEGORY_START + 1,
00692               "Apache got a malformed URI")
00693 
00694   SVN_ERRDEF (SVN_ERR_APMOD_ACTIVITY_NOT_FOUND,
00695               SVN_ERR_APMOD_CATEGORY_START + 2,
00696               "Activity not found")
00697 
00698   SVN_ERRDEF (SVN_ERR_APMOD_BAD_BASELINE,
00699               SVN_ERR_APMOD_CATEGORY_START + 3,
00700               "Baseline incorrect")
00701 
00702   SVN_ERRDEF (SVN_ERR_APMOD_CONNECTION_ABORTED,
00703               SVN_ERR_APMOD_CATEGORY_START + 4,
00704               "Input/output error")
00705 
00706   /* libsvn_client errors */
00707 
00708   SVN_ERRDEF (SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED,
00709               SVN_ERR_CLIENT_CATEGORY_START + 0,
00710               "A path under version control is needed for this operation")
00711 
00712   SVN_ERRDEF (SVN_ERR_CLIENT_RA_ACCESS_REQUIRED,
00713               SVN_ERR_CLIENT_CATEGORY_START + 1,
00714               "Repository access is needed for this operation")
00715 
00716   SVN_ERRDEF (SVN_ERR_CLIENT_BAD_REVISION,
00717               SVN_ERR_CLIENT_CATEGORY_START + 2,
00718               "Bogus revision information given")
00719 
00720   SVN_ERRDEF (SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL,
00721               SVN_ERR_CLIENT_CATEGORY_START + 3,
00722               "Attempting to commit to a URL more than once")
00723 
00724   /* UNUSED error slot:                    + 4 */
00725 
00726   SVN_ERRDEF (SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION,
00727               SVN_ERR_CLIENT_CATEGORY_START + 5,
00728               "Format of an " SVN_PROP_EXTERNALS " property was invalid")
00729 
00730   SVN_ERRDEF (SVN_ERR_CLIENT_MODIFIED,
00731               SVN_ERR_CLIENT_CATEGORY_START + 6,
00732               "Attempting restricted operation for modified resource")
00733 
00734   SVN_ERRDEF (SVN_ERR_CLIENT_IS_DIRECTORY,
00735               SVN_ERR_CLIENT_CATEGORY_START + 7,
00736               "Operation does not apply to directory")
00737 
00738   SVN_ERRDEF (SVN_ERR_CLIENT_REVISION_RANGE,
00739               SVN_ERR_CLIENT_CATEGORY_START + 8,
00740               "Revision range is not allowed")
00741 
00742   SVN_ERRDEF (SVN_ERR_CLIENT_INVALID_RELOCATION,
00743               SVN_ERR_CLIENT_CATEGORY_START + 9,
00744               "Inter-repository relocation not allowed")
00745 
00746   SVN_ERRDEF (SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE,
00747               SVN_ERR_CLIENT_CATEGORY_START + 10,
00748               SVN_PROP_REVISION_AUTHOR " contains a newline")
00749                    
00750   SVN_ERRDEF (SVN_ERR_CLIENT_PROPERTY_NAME,
00751               SVN_ERR_CLIENT_CATEGORY_START + 11,
00752               "Bad property name")
00753 
00754   /* misc errors */
00755 
00756   SVN_ERRDEF (SVN_ERR_BASE,
00757               SVN_ERR_MISC_CATEGORY_START + 0,
00758               "A problem occurred; see later errors for details")
00759 
00760   SVN_ERRDEF (SVN_ERR_PLUGIN_LOAD_FAILURE,
00761               SVN_ERR_MISC_CATEGORY_START + 1,
00762               "Failure loading plugin")
00763 
00764   SVN_ERRDEF (SVN_ERR_MALFORMED_FILE,
00765               SVN_ERR_MISC_CATEGORY_START + 2,
00766               "Malformed file")
00767 
00768   SVN_ERRDEF (SVN_ERR_INCOMPLETE_DATA,
00769               SVN_ERR_MISC_CATEGORY_START + 3,
00770               "Incomplete data")
00771 
00772   SVN_ERRDEF (SVN_ERR_INCORRECT_PARAMS,
00773               SVN_ERR_MISC_CATEGORY_START + 4,
00774               "Incorrect parameters given")
00775 
00776   SVN_ERRDEF (SVN_ERR_UNVERSIONED_RESOURCE,
00777               SVN_ERR_MISC_CATEGORY_START + 5,
00778               "Tried a versioning operation on an unversioned resource")
00779 
00780   SVN_ERRDEF (SVN_ERR_TEST_FAILED,
00781               SVN_ERR_MISC_CATEGORY_START + 6,
00782               "Test failed")
00783        
00784   SVN_ERRDEF (SVN_ERR_UNSUPPORTED_FEATURE,
00785               SVN_ERR_MISC_CATEGORY_START + 7,
00786               "Trying to use an unsupported feature")
00787 
00788   SVN_ERRDEF (SVN_ERR_BAD_PROP_KIND,
00789               SVN_ERR_MISC_CATEGORY_START + 8,
00790               "Unexpected or unknown property kind")
00791 
00792   SVN_ERRDEF (SVN_ERR_ILLEGAL_TARGET,
00793               SVN_ERR_MISC_CATEGORY_START + 9,
00794               "Illegal target for the requested operation")
00795 
00796   SVN_ERRDEF (SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT,
00797               SVN_ERR_MISC_CATEGORY_START + 10,
00798               "MD5 checksum is missing")
00799 
00800   SVN_ERRDEF (SVN_ERR_DIR_NOT_EMPTY,
00801               SVN_ERR_MISC_CATEGORY_START + 11,
00802               "Directory needs to be empty but is not")
00803 
00804   SVN_ERRDEF (SVN_ERR_EXTERNAL_PROGRAM,
00805               SVN_ERR_MISC_CATEGORY_START + 12,
00806               "Error calling external program")
00807 
00808   SVN_ERRDEF (SVN_ERR_SWIG_PY_EXCEPTION_SET,
00809               SVN_ERR_MISC_CATEGORY_START + 13,
00810               "Python exception has been set with the error")
00811 
00812   SVN_ERRDEF (SVN_ERR_CHECKSUM_MISMATCH,
00813               SVN_ERR_MISC_CATEGORY_START + 14,
00814               "A checksum mismatch occurred")
00815 
00816   SVN_ERRDEF (SVN_ERR_CANCELLED,
00817               SVN_ERR_MISC_CATEGORY_START + 15,
00818               "The operation was interrupted")
00819 
00820   SVN_ERRDEF (SVN_ERR_INVALID_DIFF_OPTION,
00821               SVN_ERR_MISC_CATEGORY_START + 16,
00822               "The specified diff option is not supported")
00823 
00824   SVN_ERRDEF (SVN_ERR_PROPERTY_NOT_FOUND,
00825               SVN_ERR_MISC_CATEGORY_START + 17,
00826               "Property not found")
00827 
00828   SVN_ERRDEF (SVN_ERR_NO_AUTH_FILE_PATH,
00829               SVN_ERR_MISC_CATEGORY_START + 18,
00830               "No auth file path available")
00831 
00832   /* command-line client errors */
00833 
00834   SVN_ERRDEF (SVN_ERR_CL_ARG_PARSING_ERROR,
00835               SVN_ERR_CL_CATEGORY_START + 0,
00836               "Client error in parsing arguments")
00837 
00838   SVN_ERRDEF (SVN_ERR_CL_INSUFFICIENT_ARGS,
00839               SVN_ERR_CL_CATEGORY_START + 1,
00840               "Not enough args provided")
00841 
00842   SVN_ERRDEF (SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS,
00843               SVN_ERR_CL_CATEGORY_START + 2,
00844               "Mutually exclusive arguments specified")
00845 
00846   SVN_ERRDEF (SVN_ERR_CL_ADM_DIR_RESERVED,
00847               SVN_ERR_CL_CATEGORY_START + 3,
00848               "Attempted command in administrative dir")
00849 
00850   SVN_ERRDEF (SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE,
00851               SVN_ERR_CL_CATEGORY_START + 4,
00852               "The log message file is under version control")
00853 
00854   SVN_ERRDEF (SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME,
00855               SVN_ERR_CL_CATEGORY_START + 5,
00856               "The log message is a pathname")
00857 
00858   SVN_ERRDEF (SVN_ERR_CL_COMMIT_IN_ADDED_DIR,
00859               SVN_ERR_CL_CATEGORY_START + 6,
00860               "Committing in directory scheduled for addition")
00861 
00862   SVN_ERRDEF (SVN_ERR_CL_NO_EXTERNAL_EDITOR,
00863               SVN_ERR_CL_CATEGORY_START + 7,
00864               "No external editor available")
00865 
00866   SVN_ERRDEF (SVN_ERR_CL_BAD_LOG_MESSAGE,
00867               SVN_ERR_CL_CATEGORY_START + 8,
00868               "Something is wrong with the log message's contents")
00869 
00870 SVN_ERROR_END
00871 
00872 
00873 #undef SVN_ERROR_START
00874 #undef SVN_ERRDEF
00875 #undef SVN_ERROR_END
00876 
00877 #ifdef __cplusplus
00878 }
00879 #endif /* __cplusplus */
00880 
00881 #endif /* defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) */

Generated on Wed Oct 20 01:47:45 2004 for Subversion by doxygen1.2.18