diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-03-18 13:33:26 +0000 |
---|---|---|
committer | <> | 2015-07-08 14:41:01 +0000 |
commit | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (patch) | |
tree | 98bae10dde41c746c51ae97ec4f879e330415aa7 /subversion/include/svn_error_codes.h | |
parent | 239dfafe71711b2f4c43d7b90a1228d7bdc5195e (diff) | |
download | subversion-tarball-subversion-1.8.13.tar.gz |
Imported from /home/lorry/working-area/delta_subversion-tarball/subversion-1.8.13.tar.gz.subversion-1.8.13
Diffstat (limited to 'subversion/include/svn_error_codes.h')
-rw-r--r-- | subversion/include/svn_error_codes.h | 303 |
1 files changed, 181 insertions, 122 deletions
diff --git a/subversion/include/svn_error_codes.h b/subversion/include/svn_error_codes.h index 4b378c9..222bc2b 100644 --- a/subversion/include/svn_error_codes.h +++ b/subversion/include/svn_error_codes.h @@ -46,6 +46,10 @@ not defined the enumerated constants yet. */ #if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_ERROR_ENUM_DEFINED) +/* Note: despite lacking double underscores in its name, the macro + SVN_ERROR_BUILD_ARRAY is an implementation detail of Subversion and not + a public API. */ + #include <apr_errno.h> /* APR's error system */ @@ -59,9 +63,9 @@ extern "C" { #define SVN_ERROR_START \ static const err_defn error_table[] = { \ - { SVN_WARNING, "Warning" }, -#define SVN_ERRDEF(num, offset, str) { num, str }, -#define SVN_ERROR_END { 0, NULL } }; + { SVN_WARNING, "SVN_WARNING", "Warning" }, +#define SVN_ERRDEF(num, offset, str) { num, #num, str }, +#define SVN_ERROR_END { 0, NULL, NULL } }; #elif !defined(SVN_ERROR_ENUM_DEFINED) @@ -224,6 +228,11 @@ SVN_ERROR_START SVN_ERR_BAD_CATEGORY_START + 14, "Invalid changelist name") + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_BAD_ATOMIC, + SVN_ERR_BAD_CATEGORY_START + 15, + "Invalid atomic") + /* xml errors */ SVN_ERRDEF(SVN_ERR_XML_ATTRIB_NOT_FOUND, @@ -528,13 +537,23 @@ SVN_ERROR_START /** @since New in 1.7. */ SVN_ERRDEF(SVN_ERR_WC_INVALID_OPERATION_DEPTH, SVN_ERR_WC_CATEGORY_START + 38, - "The operation can not be performed with the specified depth") + "The operation cannot be performed with the specified depth") /** @since New in 1.7. */ SVN_ERRDEF(SVN_ERR_WC_PATH_ACCESS_DENIED, SVN_ERR_WC_CATEGORY_START + 39, "Couldn't open a working copy file because access was denied") + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_WC_MIXED_REVISIONS, + SVN_ERR_WC_CATEGORY_START + 40, + "Mixed-revision working copy was found but not expected") + + /** @since New in 1.8 */ + SVN_ERRDEF(SVN_ERR_WC_DUPLICATE_EXTERNALS_TARGET, + SVN_ERR_WC_CATEGORY_START + 41, + "Duplicate targets in svn:externals property") + /* fs errors */ SVN_ERRDEF(SVN_ERR_FS_GENERAL, @@ -762,6 +781,21 @@ SVN_ERROR_START "Property value in filesystem differs from the provided " "base value") + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_FS_INCORRECT_EDITOR_COMPLETION, + SVN_ERR_FS_CATEGORY_START + 50, + "The filesystem editor completion process was not followed") + + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_FS_PACKED_REVPROP_READ_FAILURE, + SVN_ERR_FS_CATEGORY_START + 51, + "A packed revprop could not be read") + + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_FS_REVPROP_CACHE_INIT_FAILURE, + SVN_ERR_FS_CATEGORY_START + 52, + "Could not initialize the revprop caching infrastructure.") + /* repos errors */ SVN_ERRDEF(SVN_ERR_REPOS_LOCKED, @@ -871,6 +905,11 @@ SVN_ERROR_START SVN_ERR_RA_CATEGORY_START + 11, "Session URL does not match expected session URL") + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_RA_CANNOT_CREATE_TUNNEL, + SVN_ERR_RA_CATEGORY_START + 12, + "Can't create tunnel") + /* ra_dav errors */ SVN_ERRDEF(SVN_ERR_RA_DAV_SOCK_INIT, @@ -905,7 +944,7 @@ SVN_ERROR_START "Invalid configuration value") /** @deprecated To improve consistency between ra layers, this error code - is replaced in ra_{neon|serf} by SVN_ERR_FS_NOT_FOUND. + is replaced in ra_serf by SVN_ERR_FS_NOT_FOUND. Slated for removal in the next major release. */ SVN_ERRDEF(SVN_ERR_RA_DAV_PATH_NOT_FOUND, SVN_ERR_RA_DAV_CATEGORY_START + 7, @@ -949,114 +988,6 @@ SVN_ERROR_START SVN_ERRDEF(SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED, SVN_ERR_RA_LOCAL_CATEGORY_START + 1, "Couldn't open a repository") - /* ra_svn errors */ - - SVN_ERRDEF(SVN_ERR_RA_SVN_CMD_ERR, - SVN_ERR_RA_SVN_CATEGORY_START + 0, - "Special code for wrapping server errors to report to client") - - SVN_ERRDEF(SVN_ERR_RA_SVN_UNKNOWN_CMD, - SVN_ERR_RA_SVN_CATEGORY_START + 1, - "Unknown svn protocol command") - - SVN_ERRDEF(SVN_ERR_RA_SVN_CONNECTION_CLOSED, - SVN_ERR_RA_SVN_CATEGORY_START + 2, - "Network connection closed unexpectedly") - - SVN_ERRDEF(SVN_ERR_RA_SVN_IO_ERROR, - SVN_ERR_RA_SVN_CATEGORY_START + 3, - "Network read/write error") - - SVN_ERRDEF(SVN_ERR_RA_SVN_MALFORMED_DATA, - SVN_ERR_RA_SVN_CATEGORY_START + 4, - "Malformed network data") - - SVN_ERRDEF(SVN_ERR_RA_SVN_REPOS_NOT_FOUND, - SVN_ERR_RA_SVN_CATEGORY_START + 5, - "Couldn't find a repository") - - SVN_ERRDEF(SVN_ERR_RA_SVN_BAD_VERSION, - SVN_ERR_RA_SVN_CATEGORY_START + 6, - "Client/server version mismatch") - - /** @since New in 1.5. */ - SVN_ERRDEF(SVN_ERR_RA_SVN_NO_MECHANISMS, - SVN_ERR_RA_SVN_CATEGORY_START + 7, - "Cannot negotiate authentication mechanism") - - /** @since New in 1.7 */ - SVN_ERRDEF(SVN_ERR_RA_SVN_EDIT_ABORTED, - SVN_ERR_RA_SVN_CATEGORY_START + 8, - "Editor drive was aborted") - - /* libsvn_ra_serf errors */ - /** @since New in 1.5. */ - SVN_ERRDEF(SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED, - SVN_ERR_RA_SERF_CATEGORY_START + 0, - "Initialization of SSPI library failed") - /** @since New in 1.5. */ - SVN_ERRDEF(SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED, - SVN_ERR_RA_SERF_CATEGORY_START + 1, - "Server SSL certificate untrusted") - /** @since New in 1.7. */ - SVN_ERRDEF(SVN_ERR_RA_SERF_GSSAPI_INITIALISATION_FAILED, - SVN_ERR_RA_SERF_CATEGORY_START + 2, - "Initialization of the GSSAPI context failed") - - /** @since New in 1.7. */ - SVN_ERRDEF(SVN_ERR_RA_SERF_WRAPPED_ERROR, - SVN_ERR_RA_SERF_CATEGORY_START + 3, - "While handling serf response:") - - /* libsvn_auth errors */ - - /* this error can be used when an auth provider doesn't have - the creds, but no other "real" error occurred. */ - SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_UNAVAILABLE, - SVN_ERR_AUTHN_CATEGORY_START + 0, - "Credential data unavailable") - - SVN_ERRDEF(SVN_ERR_AUTHN_NO_PROVIDER, - SVN_ERR_AUTHN_CATEGORY_START + 1, - "No authentication provider available") - - SVN_ERRDEF(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED, - SVN_ERR_AUTHN_CATEGORY_START + 2, - "All authentication providers exhausted") - - SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_NOT_SAVED, - SVN_ERR_AUTHN_CATEGORY_START + 3, - "Credentials not saved") - - /** @since New in 1.5. */ - SVN_ERRDEF(SVN_ERR_AUTHN_FAILED, - SVN_ERR_AUTHN_CATEGORY_START + 4, - "Authentication failed") - - /* authorization errors */ - - SVN_ERRDEF(SVN_ERR_AUTHZ_ROOT_UNREADABLE, - SVN_ERR_AUTHZ_CATEGORY_START + 0, - "Read access denied for root of edit") - - /** @since New in 1.1. */ - SVN_ERRDEF(SVN_ERR_AUTHZ_UNREADABLE, - SVN_ERR_AUTHZ_CATEGORY_START + 1, - "Item is not readable") - - /** @since New in 1.1. */ - SVN_ERRDEF(SVN_ERR_AUTHZ_PARTIALLY_READABLE, - SVN_ERR_AUTHZ_CATEGORY_START + 2, - "Item is partially readable") - - SVN_ERRDEF(SVN_ERR_AUTHZ_INVALID_CONFIG, - SVN_ERR_AUTHZ_CATEGORY_START + 3, - "Invalid authz configuration") - - /** @since New in 1.3 */ - SVN_ERRDEF(SVN_ERR_AUTHZ_UNWRITABLE, - SVN_ERR_AUTHZ_CATEGORY_START + 4, - "Item is not writable") /* svndiff errors */ @@ -1084,12 +1015,6 @@ SVN_ERROR_START SVN_ERR_SVNDIFF_CATEGORY_START + 5, "Svndiff compressed data is invalid") - /* libsvn_diff errors */ - - SVN_ERRDEF(SVN_ERR_DIFF_DATASOURCE_MODIFIED, - SVN_ERR_DIFF_CATEGORY_START + 0, - "Diff data source modified unexpectedly") - /* mod_dav_svn errors */ SVN_ERRDEF(SVN_ERR_APMOD_MISSING_PATH_TO_FS, @@ -1219,7 +1144,7 @@ SVN_ERROR_START SVN_ERR_CLIENT_CATEGORY_START + 22, "Can't perform this operation without a valid lock token") -/** @since New in 1.7. */ + /** @since New in 1.7. */ SVN_ERRDEF(SVN_ERR_CLIENT_FORBIDDEN_BY_SERVER, SVN_ERR_CLIENT_CATEGORY_START + 23, "The operation is forbidden by the server") @@ -1350,7 +1275,7 @@ SVN_ERROR_START /** @since New in 1.6. */ SVN_ERRDEF(SVN_ERR_NO_APR_MEMCACHE, SVN_ERR_MISC_CATEGORY_START + 28, - "apr memcache library not available") + "APR memcache library not available") /** @since New in 1.6. */ SVN_ERRDEF(SVN_ERR_ATOMIC_INIT_FAILURE, @@ -1367,7 +1292,9 @@ SVN_ERROR_START SVN_ERR_MISC_CATEGORY_START + 31, "Attempted to write to readonly SQLite db") - /** @since New in 1.6. */ + /** @since New in 1.6. + * @deprecated the internal sqlite support code does not manage schemas + * any longer. */ SVN_ERRDEF(SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA, SVN_ERR_MISC_CATEGORY_START + 32, "Unsupported schema found in SQLite db") @@ -1388,6 +1315,21 @@ SVN_ERROR_START SVN_ERR_MISC_CATEGORY_START + 35, "Constraint error in SQLite db") + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_TOO_MANY_MEMCACHED_SERVERS, + SVN_ERR_MISC_CATEGORY_START + 36, + "Too many memcached servers configured") + + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_MALFORMED_VERSION_STRING, + SVN_ERR_MISC_CATEGORY_START + 37, + "Failed to parse version number string") + + /** @since New in 1.8. */ + SVN_ERRDEF(SVN_ERR_CORRUPTED_ATOMIC_STORAGE, + SVN_ERR_MISC_CATEGORY_START + 38, + "Atomic data storage is corrupt") + /* command-line client errors */ SVN_ERRDEF(SVN_ERR_CL_ARG_PARSING_ERROR, @@ -1438,6 +1380,123 @@ SVN_ERROR_START SVN_ERR_CL_CATEGORY_START + 11, "Failed processing one or more externals definitions") + /* ra_svn errors */ + + SVN_ERRDEF(SVN_ERR_RA_SVN_CMD_ERR, + SVN_ERR_RA_SVN_CATEGORY_START + 0, + "Special code for wrapping server errors to report to client") + + SVN_ERRDEF(SVN_ERR_RA_SVN_UNKNOWN_CMD, + SVN_ERR_RA_SVN_CATEGORY_START + 1, + "Unknown svn protocol command") + + SVN_ERRDEF(SVN_ERR_RA_SVN_CONNECTION_CLOSED, + SVN_ERR_RA_SVN_CATEGORY_START + 2, + "Network connection closed unexpectedly") + + SVN_ERRDEF(SVN_ERR_RA_SVN_IO_ERROR, + SVN_ERR_RA_SVN_CATEGORY_START + 3, + "Network read/write error") + + SVN_ERRDEF(SVN_ERR_RA_SVN_MALFORMED_DATA, + SVN_ERR_RA_SVN_CATEGORY_START + 4, + "Malformed network data") + + SVN_ERRDEF(SVN_ERR_RA_SVN_REPOS_NOT_FOUND, + SVN_ERR_RA_SVN_CATEGORY_START + 5, + "Couldn't find a repository") + + SVN_ERRDEF(SVN_ERR_RA_SVN_BAD_VERSION, + SVN_ERR_RA_SVN_CATEGORY_START + 6, + "Client/server version mismatch") + + /** @since New in 1.5. */ + SVN_ERRDEF(SVN_ERR_RA_SVN_NO_MECHANISMS, + SVN_ERR_RA_SVN_CATEGORY_START + 7, + "Cannot negotiate authentication mechanism") + + /** @since New in 1.7 */ + SVN_ERRDEF(SVN_ERR_RA_SVN_EDIT_ABORTED, + SVN_ERR_RA_SVN_CATEGORY_START + 8, + "Editor drive was aborted") + + /* libsvn_auth errors */ + + /* this error can be used when an auth provider doesn't have + the creds, but no other "real" error occurred. */ + SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_UNAVAILABLE, + SVN_ERR_AUTHN_CATEGORY_START + 0, + "Credential data unavailable") + + SVN_ERRDEF(SVN_ERR_AUTHN_NO_PROVIDER, + SVN_ERR_AUTHN_CATEGORY_START + 1, + "No authentication provider available") + + SVN_ERRDEF(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED, + SVN_ERR_AUTHN_CATEGORY_START + 2, + "All authentication providers exhausted") + + SVN_ERRDEF(SVN_ERR_AUTHN_CREDS_NOT_SAVED, + SVN_ERR_AUTHN_CATEGORY_START + 3, + "Credentials not saved") + + /** @since New in 1.5. */ + SVN_ERRDEF(SVN_ERR_AUTHN_FAILED, + SVN_ERR_AUTHN_CATEGORY_START + 4, + "Authentication failed") + + /* authorization errors */ + + SVN_ERRDEF(SVN_ERR_AUTHZ_ROOT_UNREADABLE, + SVN_ERR_AUTHZ_CATEGORY_START + 0, + "Read access denied for root of edit") + + /** @since New in 1.1. */ + SVN_ERRDEF(SVN_ERR_AUTHZ_UNREADABLE, + SVN_ERR_AUTHZ_CATEGORY_START + 1, + "Item is not readable") + + /** @since New in 1.1. */ + SVN_ERRDEF(SVN_ERR_AUTHZ_PARTIALLY_READABLE, + SVN_ERR_AUTHZ_CATEGORY_START + 2, + "Item is partially readable") + + SVN_ERRDEF(SVN_ERR_AUTHZ_INVALID_CONFIG, + SVN_ERR_AUTHZ_CATEGORY_START + 3, + "Invalid authz configuration") + + /** @since New in 1.3 */ + SVN_ERRDEF(SVN_ERR_AUTHZ_UNWRITABLE, + SVN_ERR_AUTHZ_CATEGORY_START + 4, + "Item is not writable") + + + /* libsvn_diff errors */ + + SVN_ERRDEF(SVN_ERR_DIFF_DATASOURCE_MODIFIED, + SVN_ERR_DIFF_CATEGORY_START + 0, + "Diff data source modified unexpectedly") + + /* libsvn_ra_serf errors */ + /** @since New in 1.5. */ + SVN_ERRDEF(SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED, + SVN_ERR_RA_SERF_CATEGORY_START + 0, + "Initialization of SSPI library failed") + /** @since New in 1.5. */ + SVN_ERRDEF(SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED, + SVN_ERR_RA_SERF_CATEGORY_START + 1, + "Server SSL certificate untrusted") + /** @since New in 1.7. + @deprecated GSSAPI now handled by serf rather than libsvn_ra_serf. */ + SVN_ERRDEF(SVN_ERR_RA_SERF_GSSAPI_INITIALISATION_FAILED, + SVN_ERR_RA_SERF_CATEGORY_START + 2, + "Initialization of the GSSAPI context failed") + + /** @since New in 1.7. */ + SVN_ERRDEF(SVN_ERR_RA_SERF_WRAPPED_ERROR, + SVN_ERR_RA_SERF_CATEGORY_START + 3, + "While handling serf response:") + /* malfunctions such as assertion failures */ SVN_ERRDEF(SVN_ERR_ASSERTION_FAIL, |