## include/er_RX_errors.h

/* [<][>][^][v][top][bottom][index][help] */

## FUNCTIONS

This source file includes following functions.

    /***************************************
      $Revision: 1.2 $

      Radix tree (rx).  er_RX_errors.h - definition of errors for the radix module

      Status: NOT REVUED, TESTED,

      Design and implementation by: Marek Bukowy

      ******************/ /******************
      Copyright (c) 1999                              RIPE NCC

      All Rights Reserved

      Permission to use, copy, modify, and distribute this software and its
      documentation for any purpose and without fee is hereby granted,
      provided that the above copyright notice appear in all copies and that
      both that copyright notice and this permission notice appear in
      supporting documentation, and that the name of the author not be
      used in advertising or publicity pertaining to distribution of the
      software without specific, written prior permission.

      THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
      ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
      AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
      DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
      AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
      OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
      ***************************************/

    /* step 1 */

    typedef enum {
             LOW_RX_OK=0,
             LOW_RX_NOTREE,
             LOW_RX_TRALEX,
             LOW_RX_NOYETI,
             LOW_RX_BADKEY
    } RX_err_code_t;

    /* step 2 */

    #define RX_OK           ER_SEV_I + (FAC_RX<<16) + LOW_RX_OK
    #define RX_NOTREE       ER_SEV_E + (FAC_RX<<16) + LOW_RX_NOTREE
    #define RX_TRALEX       ER_SEV_E + (FAC_RX<<16) + LOW_RX_TRALEX
    #define RX_NOYETI       ER_SEV_E + (FAC_RX<<16) + LOW_RX_NOYETI
    #define RX_BADKEY       ER_SEV_E + (FAC_RX<<16) + LOW_RX_BADKEY

    /* step 3 */

    #ifdef ER_IMPL

    er_list_t RX_mod_err[]={
      { ERDUP(RX_OK),       "OK" },
      { ERDUP(RX_NOTREE),   "No such tree" },
      { ERDUP(RX_TRALEX),   "Tree already exists" },
      { ERDUP(RX_NOYETI),   "Not yet implemented" },
      { ERDUP(RX_BADKEY),    "Bad object key" },
      ER_LASTTXT
    };

    #endif /* ER_IMPL */

/* [<][>][^][v][top][bottom][index][help] */