2
* client_errors.h: error codes this command line client features
4
* ====================================================================
5
* Copyright (c) 2000-2004 CollabNet. All rights reserved.
7
* This software is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at http://subversion.tigris.org/license-1.html.
10
* If newer versions of this license are posted there, you may use a
11
* newer version instead, at your option.
13
* This software consists of voluntary contributions made by many
14
* individuals. For exact contribution history, see the revision
15
* history and logs, available at http://subversion.tigris.org/.
16
* ====================================================================
19
/* ==================================================================== */
23
#ifndef SVN_CLIENT_ERRORS_H
24
#define SVN_CLIENT_ERRORS_H
28
#endif /* __cplusplus */
31
* This error defining system is copied from and explained in
32
* ../../include/svn_error_codes.h
35
/* Process this file if we're building an error array, or if we have
36
not defined the enumerated constants yet. */
37
#if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
39
#if defined(SVN_ERROR_BUILD_ARRAY)
41
#define SVN_ERROR_START \
42
static const err_defn error_table[] = { \
43
{ SVN_ERR_CDMLINE__WARNING, "Warning" },
44
#define SVN_ERRDEF(n, s) { n, s },
45
#define SVN_ERROR_END { 0, NULL } };
47
#elif !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
49
#define SVN_ERROR_START \
50
typedef enum svn_client_errno_t { \
51
SVN_ERR_CDMLINE__WARNING = SVN_ERR_LAST + 1,
52
#define SVN_ERRDEF(n, s) n,
53
#define SVN_ERROR_END SVN_ERR_CMDLINE__ERR_LAST } svn_client_errno_t;
55
#define SVN_CMDLINE_ERROR_ENUM_DEFINED
59
/* Define custom command line client error numbers */
63
/* BEGIN Client errors */
65
SVN_ERRDEF (SVN_ERR_CMDLINE__TMPFILE_WRITE,
66
"Failed writing to temporary file.")
68
SVN_ERRDEF (SVN_ERR_CMDLINE__TMPFILE_STAT,
69
"Failed getting info about temporary file.")
71
SVN_ERRDEF (SVN_ERR_CMDLINE__TMPFILE_OPEN,
72
"Failed opening temporary file.")
74
/* END Client errors */
79
#undef SVN_ERROR_START
83
#endif /* SVN_ERROR_BUILD_ARRAY || !SVN_CMDLINE_ERROR_ENUM_DEFINED */
88
#endif /* __cplusplus */
90
#endif /* SVN_CLIENT_ERRORS_H */