/* [<][>][^][v][top][bottom][index][help] */
DEFINITIONS
This source file includes following functions.
- LOW_RX_OK
- LOW_RX_NOTREE
- LOW_RX_TRALEX
- LOW_RX_NOYETI
- LOW_RX_BADKEY
- LOW_RX_DATNOF
- RX_err_code_t
1 /***************************************
2 $Revision: 1.4 $
3
4 Radix tree (rx). er_RX_errors.h - definition of errors for the radix module
5
6 Status: NOT REVUED, TESTED,
7
8 Design and implementation by: Marek Bukowy
9
10 ******************/ /******************
11 Copyright (c) 1999,2000,2001,2002 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 /* step 1 */
32
33 typedef enum {
34 LOW_RX_OK=0,
/* [<][>][^][v][top][bottom][index][help] */
35 LOW_RX_NOTREE,
/* [<][>][^][v][top][bottom][index][help] */
36 LOW_RX_TRALEX,
/* [<][>][^][v][top][bottom][index][help] */
37 LOW_RX_NOYETI,
/* [<][>][^][v][top][bottom][index][help] */
38 LOW_RX_BADKEY,
/* [<][>][^][v][top][bottom][index][help] */
39 LOW_RX_DATNOF
/* [<][>][^][v][top][bottom][index][help] */
40 } RX_err_code_t;
/* [<][>][^][v][top][bottom][index][help] */
41
42 /* step 2 */
43
44 #define RX_OK ER_SEV_I + (FAC_RX<<16) + LOW_RX_OK
45 #define RX_NOTREE ER_SEV_E + (FAC_RX<<16) + LOW_RX_NOTREE
46 #define RX_TRALEX ER_SEV_E + (FAC_RX<<16) + LOW_RX_TRALEX
47 #define RX_NOYETI ER_SEV_E + (FAC_RX<<16) + LOW_RX_NOYETI
48 #define RX_BADKEY ER_SEV_E + (FAC_RX<<16) + LOW_RX_BADKEY
49 #define RX_DATNOF ER_SEV_E + (FAC_RX<<16) + LOW_RX_DATNOF
50
51 /* step 3 */
52
53 #ifdef ER_IMPL
54
55 er_list_t RX_mod_err[]={
56 { ERDUP(RX_OK), "OK" },
57 { ERDUP(RX_NOTREE), "No such tree" },
58 { ERDUP(RX_TRALEX), "Tree already exists" },
59 { ERDUP(RX_NOYETI), "Not yet implemented" },
60 { ERDUP(RX_BADKEY), "Bad object key" },
61 { ERDUP(RX_DATNOF), "Dataleaf not found" },
62 ER_LASTTXT
63 };
64
65 #endif /* ER_IMPL */