Subversion
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

◆ SVN_ERR_IS_LOCK_ERROR

#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)

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 451 of file svn_error.h.

◆ SVN_ERR_IS_UNLOCK_ERROR

#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)

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 469 of file svn_error.h.

◆ SVN_ERROR_IN_CATEGORY

#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 484 of file svn_error.h.

SVN_ERR_FS_NO_SUCH_LOCK
@ SVN_ERR_FS_NO_SUCH_LOCK
"Filesystem has no such lock"
Definition: svn_error_codes.h:751
SVN_ERR_REPOS_HOOK_FAILURE
@ SVN_ERR_REPOS_HOOK_FAILURE
"A repository hook failed"
Definition: svn_error_codes.h:914
SVN_ERR_FS_LOCK_OWNER_MISMATCH
@ SVN_ERR_FS_LOCK_OWNER_MISMATCH
"Username does not match lock owner"
Definition: svn_error_codes.h:746
SVN_ERR_FS_PATH_ALREADY_LOCKED
@ SVN_ERR_FS_PATH_ALREADY_LOCKED
"Path is already locked"
Definition: svn_error_codes.h:726
SVN_ERR_FS_NOT_FILE
@ SVN_ERR_FS_NOT_FILE
"Name does not refer to a filesystem file"
Definition: svn_error_codes.h:651
SVN_ERR_FS_PATH_NOT_LOCKED
@ SVN_ERR_FS_PATH_NOT_LOCKED
"Path is not locked"
Definition: svn_error_codes.h:731
SVN_ERR_RA_NOT_LOCKED
@ SVN_ERR_RA_NOT_LOCKED
"Path is not locked"
Definition: svn_error_codes.h:993
SVN_ERR_FS_OUT_OF_DATE
@ SVN_ERR_FS_OUT_OF_DATE
"Item is out of date"
Definition: svn_error_codes.h:761
SVN_ERR_FS_NOT_FOUND
@ SVN_ERR_FS_NOT_FOUND
"Filesystem has no item"
Definition: svn_error_codes.h:635
SVN_ERR_FS_BAD_LOCK_TOKEN
@ SVN_ERR_FS_BAD_LOCK_TOKEN
"Lock token is incorrect"
Definition: svn_error_codes.h:736
SVN_ERR_FS_LOCK_EXPIRED
@ SVN_ERR_FS_LOCK_EXPIRED
"Lock has expired"
Definition: svn_error_codes.h:756
SVN_ERR_FS_NO_SUCH_REVISION
@ SVN_ERR_FS_NO_SUCH_REVISION
"Invalid filesystem revision number"
Definition: svn_error_codes.h:607