]>
Commit | Line | Data |
---|---|---|
b66d022e DS |
1 | /* |
2 | * Library-specific error messages. | |
3 | * Copyright (C) 2018 Cumulus Networks, Inc. | |
4 | * Donald Sharp | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the Free | |
8 | * Software Foundation; either version 2 of the License, or (at your option) | |
9 | * any later version. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
14 | * more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License along | |
17 | * with this program; see the file COPYING; if not, write to the Free Software | |
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
19 | */ | |
247dcce2 | 20 | |
b66d022e DS |
21 | #ifndef __LIB_ERRORS_H__ |
22 | #define __LIB_ERRORS_H__ | |
23 | ||
247dcce2 | 24 | #include "lib/ferr.h" |
b66d022e | 25 | |
5e244469 RW |
26 | #ifdef __cplusplus |
27 | extern "C" { | |
28 | #endif | |
29 | ||
85cd2f9f | 30 | enum lib_log_refs { |
450971aa QY |
31 | EC_LIB_PRIVILEGES = LIB_FERR_START, |
32 | EC_LIB_VRF_START, | |
33 | EC_LIB_SOCKET, | |
34 | EC_LIB_ZAPI_MISSMATCH, | |
35 | EC_LIB_ZAPI_ENCODE, | |
36 | EC_LIB_ZAPI_SOCKET, | |
37 | EC_LIB_SYSTEM_CALL, | |
38 | EC_LIB_VTY, | |
39 | EC_LIB_INTERFACE, | |
40 | EC_LIB_NS, | |
41 | EC_LIB_DEVELOPMENT, | |
42 | EC_LIB_ZMQ, | |
43 | EC_LIB_UNAVAILABLE, | |
44 | EC_LIB_SNMP, | |
45 | EC_LIB_STREAM, | |
46 | EC_LIB_LINUX_NS, | |
039d547f DS |
47 | EC_LIB_SLOW_THREAD_CPU, |
48 | EC_LIB_SLOW_THREAD_WALL, | |
ab01a001 | 49 | EC_LIB_STARVE_THREAD, |
45f3d590 | 50 | EC_LIB_NO_THREAD, |
e2eff5c3 | 51 | EC_LIB_TIMER_TOO_LONG, |
450971aa QY |
52 | EC_LIB_RMAP_RECURSION_LIMIT, |
53 | EC_LIB_BACKUP_CONFIG, | |
54 | EC_LIB_VRF_LENGTH, | |
1c2facd1 RW |
55 | EC_LIB_YANG_MODULE_LOAD, |
56 | EC_LIB_YANG_MODULE_LOADED_ALREADY, | |
57 | EC_LIB_YANG_DATA_CONVERT, | |
58 | EC_LIB_YANG_DATA_TRUNCATED, | |
59 | EC_LIB_YANG_UNKNOWN_DATA_PATH, | |
60 | EC_LIB_YANG_DNODE_NOT_FOUND, | |
61 | EC_LIB_YANG_TRANSLATOR_LOAD, | |
62 | EC_LIB_YANG_TRANSLATION_ERROR, | |
63 | EC_LIB_NB_DATABASE, | |
64 | EC_LIB_NB_CB_UNNEEDED, | |
65 | EC_LIB_NB_CB_MISSING, | |
66 | EC_LIB_NB_CB_INVALID_PRIO, | |
67 | EC_LIB_NB_CBS_VALIDATION, | |
625b70e3 EDP |
68 | EC_LIB_NB_CB_CONFIG_VALIDATE, |
69 | EC_LIB_NB_CB_CONFIG_PREPARE, | |
70 | EC_LIB_NB_CB_CONFIG_ABORT, | |
71 | EC_LIB_NB_CB_CONFIG_APPLY, | |
1c2facd1 RW |
72 | EC_LIB_NB_CB_STATE, |
73 | EC_LIB_NB_CB_RPC, | |
74 | EC_LIB_NB_CANDIDATE_INVALID, | |
75 | EC_LIB_NB_CANDIDATE_EDIT_ERROR, | |
1a4bc045 | 76 | EC_LIB_NB_OPERATIONAL_DATA, |
1c2facd1 RW |
77 | EC_LIB_NB_TRANSACTION_CREATION_FAILED, |
78 | EC_LIB_NB_TRANSACTION_RECORD_FAILED, | |
79 | EC_LIB_LIBYANG, | |
80 | EC_LIB_LIBYANG_PLUGIN_LOAD, | |
81 | EC_LIB_CONFD_INIT, | |
82 | EC_LIB_CONFD_DATA_CONVERT, | |
83 | EC_LIB_LIBCONFD, | |
84 | EC_LIB_SYSREPO_INIT, | |
85 | EC_LIB_SYSREPO_DATA_CONVERT, | |
86 | EC_LIB_LIBSYSREPO, | |
ec2ac5f2 | 87 | EC_LIB_GRPC_INIT, |
a94eca09 MS |
88 | EC_LIB_ID_CONSISTENCY, |
89 | EC_LIB_ID_EXHAUST, | |
fe9e7b71 | 90 | EC_LIB_RESOLVER, |
b66d022e DS |
91 | }; |
92 | ||
93 | extern void lib_error_init(void); | |
94 | ||
5e244469 RW |
95 | #ifdef __cplusplus |
96 | } | |
97 | #endif | |
98 | ||
b66d022e | 99 | #endif |