src/error.h
changeset 27 e6639132bead
parent 23 542c73d07d3c
child 29 3f0f2898fea3
equal deleted inserted replaced
26:aec062af155d 27:e6639132bead
    72     _ERROR_CODE( ERR_EVSQL_NEW_PQ,                  0x010301,   NONE    ),
    72     _ERROR_CODE( ERR_EVSQL_NEW_PQ,                  0x010301,   NONE    ),
    73 
    73 
    74     /* irc_line errors */
    74     /* irc_line errors */
    75     _ERROR_CODE( ERR_LINE_TOO_LONG,                 0x100101,   NONE    ),
    75     _ERROR_CODE( ERR_LINE_TOO_LONG,                 0x100101,   NONE    ),
    76     _ERROR_CODE( ERR_LINE_INVALID_TOKEN,            0x100102,   NONE    ),
    76     _ERROR_CODE( ERR_LINE_INVALID_TOKEN,            0x100102,   NONE    ),
       
    77 
       
    78     /** irc_conn errors */
       
    79     _ERROR_CODE( ERR_IRC_CONN_REGISTER_STATE,       0x100201,   NONE    ),
    77     
    80     
    78     // mask of bits used for the error_code value
    81     // mask of bits used for the error_code value
    79     _ERROR_CODE_MASK    = 0xffffff,
    82     _ERROR_CODE_MASK    = 0xffffff,
    80 };
    83 };
    81 
    84 
    84  */
    87  */
    85 struct error_info {
    88 struct error_info {
    86     /* The base error code */
    89     /* The base error code */
    87     err_t code;
    90     err_t code;
    88 
    91 
    89     /* Additional detail info, usually some third-part error code */
    92     /* Additional detail info, usually some third-party error code */
    90     unsigned int extra;
    93     int extra;
    91 };
    94 };
    92 
    95 
    93 /*
    96 /*
    94  * Translate an err_t into a function name.
    97  * Translate an err_t into a function name.
    95  */
    98  */