Subversion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Error groups

Error groups. More...

Macros

#define SVN_ERR_IS_LOCK_ERROR(err)
 Return TRUE if err is an error specifically related to locking a path in the repository, FALSE otherwise. More...
 
#define SVN_ERR_IS_UNLOCK_ERROR(err)
 Return TRUE if err is an error specifically related to unlocking a path in the repository, FALSE otherwise. More...
 
#define SVN_ERROR_IN_CATEGORY(apr_err, category)   ((category) == ((apr_err) / SVN_ERR_CATEGORY_SIZE) * SVN_ERR_CATEGORY_SIZE)
 Evaluates to TRUE iff apr_err (of type apr_status_t) is in the given category, which should be one of the SVN_ERR_*_CATEGORY_START constants. More...
 

Detailed Description

Error groups.

Macro Definition Documentation

#define SVN_ERR_IS_LOCK_ERROR (   err)
Value:
(err->apr_err == SVN_ERR_FS_PATH_ALREADY_LOCKED || \
err->apr_err == SVN_ERR_FS_NOT_FOUND || \
err->apr_err == SVN_ERR_FS_OUT_OF_DATE || \
err->apr_err == SVN_ERR_FS_BAD_LOCK_TOKEN || \
err->apr_err == SVN_ERR_REPOS_HOOK_FAILURE || \
err->apr_err == SVN_ERR_FS_NO_SUCH_REVISION || \
err->apr_err == SVN_ERR_FS_OUT_OF_DATE || \
err->apr_err == SVN_ERR_FS_NOT_FILE)
"Lock token is incorrect"
"Name does not refer to a filesystem file"
"Invalid filesystem revision number"
"A repository hook failed"
"Path is already locked"
"Item is out of date"
"Filesystem has no item"

Return TRUE if err is an error specifically related to locking a path in the repository, FALSE otherwise.

SVN_ERR_FS_OUT_OF_DATE and SVN_ERR_FS_NOT_FOUND are in here because it's a non-fatal error that can be thrown when attempting to lock an item.

SVN_ERR_REPOS_HOOK_FAILURE refers to the pre-lock hook.

Since
New in 1.2.

Definition at line 453 of file svn_error.h.

#define SVN_ERR_IS_UNLOCK_ERROR (   err)
Value:
(err->apr_err == SVN_ERR_FS_PATH_NOT_LOCKED || \
err->apr_err == SVN_ERR_FS_BAD_LOCK_TOKEN || \
err->apr_err == SVN_ERR_FS_LOCK_OWNER_MISMATCH || \
err->apr_err == SVN_ERR_FS_NO_SUCH_LOCK || \
err->apr_err == SVN_ERR_RA_NOT_LOCKED || \
err->apr_err == SVN_ERR_FS_LOCK_EXPIRED || \
err->apr_err == SVN_ERR_REPOS_HOOK_FAILURE)
"Lock token is incorrect"
"Lock has expired"
"A repository hook failed"
"Path is not locked"
"Path is not locked"
"Filesystem has no such lock"
"Username does not match lock owner"

Return TRUE if err is an error specifically related to unlocking a path in the repository, FALSE otherwise.

SVN_ERR_REPOS_HOOK_FAILURE refers to the pre-unlock hook.

Since
New in 1.2.

Definition at line 471 of file svn_error.h.

#define SVN_ERROR_IN_CATEGORY (   apr_err,
  category 
)    ((category) == ((apr_err) / SVN_ERR_CATEGORY_SIZE) * SVN_ERR_CATEGORY_SIZE)

Evaluates to TRUE iff apr_err (of type apr_status_t) is in the given category, which should be one of the SVN_ERR_*_CATEGORY_START constants.

Since
New in 1.7.

Definition at line 486 of file svn_error.h.