## modules/wh/er_WH_errors.h

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

## DEFINITIONS

This source file includes following functions.

1. LOW_WH_OK
2. LOW_WH_TIMEOUT
3. LOW_WH_MAXLINES
4. LOW_WH_CONNECT
5. LOW_WH_BADHOST
6. LOW_WH_SOCKET
7. LOW_WH_BIND
8. LOW_WH_OPEN
9. WH_err_code_t

       1 /***************************************
       2   $Revision: 1.2 $
       3
       4   er_WH_errors.h - definition of errors for the whois module
       5
       6   Status: NOT REVUED, NOT 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_WH_OK=0,
         /* [<][>][^][v][top][bottom][index][help] */
      35          LOW_WH_TIMEOUT,
         /* [<][>][^][v][top][bottom][index][help] */
      36          LOW_WH_MAXLINES,
         /* [<][>][^][v][top][bottom][index][help] */
      37          LOW_WH_CONNECT,
         /* [<][>][^][v][top][bottom][index][help] */
      38          LOW_WH_BADHOST,
         /* [<][>][^][v][top][bottom][index][help] */
      39          LOW_WH_SOCKET,
         /* [<][>][^][v][top][bottom][index][help] */
      40          LOW_WH_BIND,
         /* [<][>][^][v][top][bottom][index][help] */
      41          LOW_WH_OPEN
         /* [<][>][^][v][top][bottom][index][help] */
      42 } WH_err_code_t;
         /* [<][>][^][v][top][bottom][index][help] */
      43
      44 /* step 2 */
      45
      46 #define WH_OK           ER_SEV_I + (FAC_WH<<16) + LOW_WH_OK
      47 #define WH_TIMEOUT      ER_SEV_W + (FAC_WH<<16) + LOW_WH_TIMEOUT
      48 #define WH_MAXLINES     ER_SEV_W + (FAC_WH<<16) + LOW_WH_MAXLINES
      49
      50 #define WH_CONNECT      ER_SEV_E + (FAC_WH<<16) + LOW_WH_CONNECT
      51 #define WH_BADHOST      ER_SEV_E + (FAC_WH<<16) + LOW_WH_BADHOST
      52 #define WH_SOCKET       ER_SEV_E + (FAC_WH<<16) + LOW_WH_SOCKET
      53 #define WH_BIND         ER_SEV_E + (FAC_WH<<16) + LOW_WH_BIND
      54 #define WH_OPEN         ER_SEV_E + (FAC_WH<<16) + LOW_WH_OPEN
      55
      56
      57 /* step 3 */
      58
      59 #ifdef ER_IMPL
      60
      61 er_list_t WH_mod_err[]={
      62   { ERDUP(WH_OK),       "OK" },
      63   { ERDUP(WH_TIMEOUT),  "timeout getting data" },
      64   { ERDUP(WH_MAXLINES), "maxlines limit exceeded" },
      65   { ERDUP(WH_CONNECT),  "cannot connect" },
      66   { ERDUP(WH_BADHOST),  "cannot find such host" },
      67   { ERDUP(WH_SOCKET),   "cannot create a socket" },
      68   { ERDUP(WH_BIND),     "cannot bind to socket" },
      69   { ERDUP(WH_OPEN),     "cannot open socket for reading" },
      70   ER_LASTTXT
      71 };
      72
      73 #endif /* ER_IMPL */

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