2
* client_errors.h: error codes this command line client features
4
* ====================================================================
5
* Licensed to the Apache Software Foundation (ASF) under one
6
* or more contributor license agreements. See the NOTICE file
7
* distributed with this work for additional information
8
* regarding copyright ownership. The ASF licenses this file
9
* to you under the Apache License, Version 2.0 (the
10
* "License"); you may not use this file except in compliance
11
* with the License. You may obtain a copy of the License at
13
* http://www.apache.org/licenses/LICENSE-2.0
15
* Unless required by applicable law or agreed to in writing,
16
* software distributed under the License is distributed on an
17
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
* KIND, either express or implied. See the License for the
19
* specific language governing permissions and limitations
21
* ====================================================================
24
/* ==================================================================== */
28
#ifndef SVN_CLIENT_ERRORS_H
29
#define SVN_CLIENT_ERRORS_H
33
#endif /* __cplusplus */
36
* This error defining system is copied from and explained in
37
* ../../include/svn_error_codes.h
40
/* Process this file if we're building an error array, or if we have
41
not defined the enumerated constants yet. */
42
#if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
44
#if defined(SVN_ERROR_BUILD_ARRAY)
46
#error "Need to update err_defn for r1464679 and un-typo 'CDMLINE'"
48
#define SVN_ERROR_START \
49
static const err_defn error_table[] = { \
50
{ SVN_ERR_CDMLINE__WARNING, "Warning" },
51
#define SVN_ERRDEF(n, s) { n, s },
52
#define SVN_ERROR_END { 0, NULL } };
54
#elif !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
56
#define SVN_ERROR_START \
57
typedef enum svn_client_errno_t { \
58
SVN_ERR_CDMLINE__WARNING = SVN_ERR_LAST + 1,
59
#define SVN_ERRDEF(n, s) n,
60
#define SVN_ERROR_END SVN_ERR_CMDLINE__ERR_LAST } svn_client_errno_t;
62
#define SVN_CMDLINE_ERROR_ENUM_DEFINED
66
/* Define custom command line client error numbers */
70
/* BEGIN Client errors */
72
SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_WRITE,
73
"Failed writing to temporary file.")
75
SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_STAT,
76
"Failed getting info about temporary file.")
78
SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_OPEN,
79
"Failed opening temporary file.")
81
/* END Client errors */
86
#undef SVN_ERROR_START
90
#endif /* SVN_ERROR_BUILD_ARRAY || !SVN_CMDLINE_ERROR_ENUM_DEFINED */
95
#endif /* __cplusplus */
97
#endif /* SVN_CLIENT_ERRORS_H */