Concord - C Discord API library
A Discord API wrapper library written in C
concord-error.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CCORD_INTERNAL_ERROR   -200
 
#define CCORD_BAD_ENCODE   -101
 
#define CCORD_BAD_DECODE   -100
 
#define CCORD_OUT_OF_MEMORY   -60
 
#define CCORD_ERRNO   -50
 
#define CCORD_CURL_WEBSOCKETS_MISSING   -14
 
#define CCORD_CURL_OUTDATED_VERSION   -13
 
#define CCORD_MALFORMED_PAYLOAD   -12
 
#define CCORD_FULL_WORKER   -11
 
#define CCORD_RESOURCE_UNAVAILABLE   -10
 
#define CCORD_RESOURCE_OWNERSHIP   -9
 
#define CCORD_GLOBAL_INIT   -8
 
#define CCORD_CURLM_INTERNAL   -7
 
#define CCORD_CURLE_INTERNAL   -6
 
#define CCORD_BAD_JSON   -5
 
#define CCORD_BAD_PARAMETER   -4
 
#define CCORD_UNUSUAL_HTTP_CODE   -3
 
#define CCORD_CURL_NO_RESPONSE   -2
 
#define CCORD_HTTP_CODE   -1
 
#define CCORD_OK   0
 

Typedefs

typedef int CCORDcode
 Concord error codes. More...
 

Functions

const char * ccord_code_as_string (CCORDcode code)
 
const char * ccord_strerror (CCORDcode code)