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)
"Lock token is incorrect"
"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.

Since
New in 1.2.

Definition at line 422 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)
"Lock token is incorrect"
"Lock has expired"
"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.

Since
New in 1.2.

Definition at line 434 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 448 of file svn_error.h.