Couchbase C Client  2.8.4
error.h File Reference

Definition of all of the error codes used by libcouchbase. More...

Go to the source code of this file.

Macros

#define LCB__ERR_USEDETAILS
 
#define LCB_XERR(X)
 XMacro for all error types. More...
 
#define X(n, v, cls, s)
 
#define LCB_CLIENT_ETMPFAIL
 
#define LCB_EIFINPUT(e)
 If the error is a result of bad input.
 
#define LCB_EIFNET(e)
 if the error is a result of a network condition
 
#define LCB_EIFFATAL(e)
 if the error is fatal
 
#define LCB_EIFTMP(e)
 if the error is transient
 
#define LCB_EIFDATA(e)
 if the error is a routine negative server reply
 
#define LCB_EIFPLUGIN(e)
 if the error is a result of a plugin implementation
 
#define LCB_EIFSRVLOAD(e)
 
#define LCB_EIFSRVGEN(e)
 
#define LCB_EIFSUBDOC(e)
 

Typedefs

typedef lcb_error_t(* lcb_errmap_callback) (lcb_t instance, lcb_U16 bincode)
 Callback for error mappings. More...
 

Enumerations

enum  lcb_errflags_t
 Error Categories. More...
 
enum  lcb_error_t
 Error codes returned by the library. More...
 

Functions

int lcb_get_errtype (lcb_error_t err)
 Get error categories for a specific code. More...
 
const char * lcb_strerror (lcb_t instance, lcb_error_t error)
 Get a textual descrtiption for the given error code. More...
 
LCB_INTERNAL_API const char * lcb_strerror_short (lcb_error_t error)
 Get a shorter textual description of an error message. More...
 
LCB_INTERNAL_API const char * lcb_strerror_long (lcb_error_t error)
 Get a longer textual description of an error message.
 
lcb_error_t lcb_errmap_default (lcb_t instance, lcb_U16 code)
 This may be used in conjunction with the errmap callback if it wishes to fallback for default behavior for the given code. More...
 
lcb_errmap_callback lcb_set_errmap_callback (lcb_t, lcb_errmap_callback)
 

Detailed Description

Definition of all of the error codes used by libcouchbase.