GME  13
Defines
Error groups

Defines

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

Detailed Description

Error groups


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

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.

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)

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.