1 | /***************************************
2 | $Revision: 1.1 $
3 |
4 | Radix tree (rx). er_PM_errors.h - definition of errors for the radix module
5 |
6 | Status: NOT REVUED, TESTED,
7 |
8 | Design and implementation by: Andrei Robachevsky
9 |
10 | ******************/ /******************
11 | Copyright (c) 1999 RIPE NCC
12 |
13 | All Rights Reserved
14 |
15 | Permission to use, copy, modify, and distribute this software and its
16 | documentation for any purpose and without fee is hereby granted,
17 | provided that the above copyright notice appear in all copies and that
18 | both that copyright notice and this permission notice appear in
19 | supporting documentation, and that the name of the author not be
20 | used in advertising or publicity pertaining to distribution of the
21 | software without specific, written prior permission.
22 |
23 | THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
24 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
25 | AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
26 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
27 | AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
28 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
29 | ***************************************/
30 |
31 | #define UD_TAG " "
32 |
33 | /* step 1 */
34 |
35 | typedef enum {
36 | LOW_UD_OK=0,
37 | LOW_UD_MEM,
38 | LOW_UD_SQL,
39 | LOW_UD_FS,
40 | LOW_UD_BUG
41 |
42 | } UD_err_code_t;
43 |
44 | /* step 2 */
45 |
46 | #define UD_OK ER_SEV_I + (FAC_UD<<16) + LOW_UD_OK
47 | #define UD_MEM ER_SEV_F + (FAC_UD<<16) + LOW_UD_MEM
48 | #define UD_SQL ER_SEV_F + (FAC_UD<<16) + LOW_UD_SQL
49 | #define UD_FS ER_SEV_F + (FAC_UD<<16) + LOW_UD_FS
50 | #define UD_BUG ER_SEV_F + (FAC_UD<<16) + LOW_UD_BUG
51 |
52 | /* step 3 */
53 |
54 | #ifdef ER_IMPL
55 |
56 | er_list_t UD_mod_err[]={
57 | { ERDUP(UD_OK), "OK" },
58 | { ERDUP(UD_MEM), "Memory allocation error" },
59 | { ERDUP(UD_SQL), "Database SQL query error" },
60 | { ERDUP(UD_FS), "File system related error" },
61 | { ERDUP(UD_BUG), "Software bug - contact developer" },
62 | ER_LASTTXT
63 | };
64 |
65 | #endif /* ER_IMPL */
66 |
67 |
68 |