Concord - C Discord API library
A Discord API wrapper library written in C
error.h
Go to the documentation of this file.
1
3
#ifndef CONCORD_ERROR_H
4
#define CONCORD_ERROR_H
5
10
/* XXX: As new values are added, discord_strerror() should be updated
11
* accordingly! */
12
typedef
enum
CCORDcode
{
14
CCORD_MALFORMED_PAYLOAD
= -12,
16
CCORD_FULL_WORKER
= -11,
18
CCORD_RESOURCE_UNAVAILABLE
= -10,
19
/* deprecated */
20
CCORD_UNAVAILABLE
=
CCORD_RESOURCE_UNAVAILABLE
,
22
CCORD_RESOURCE_OWNERSHIP
= -9,
23
/* deprecated */
24
CCORD_OWNERSHIP
=
CCORD_RESOURCE_OWNERSHIP
,
26
CCORD_GLOBAL_INIT
= -8,
28
CCORD_CURLM_INTERNAL
= -7,
30
CCORD_CURLE_INTERNAL
= -6,
32
CCORD_BAD_JSON
= -5,
34
CCORD_BAD_PARAMETER
= -4,
36
CCORD_UNUSUAL_HTTP_CODE
= -3,
38
CCORD_CURL_NO_RESPONSE
= -2,
40
CCORD_HTTP_CODE
= -1,
42
CCORD_OK
= 0,
47
CCORD_PENDING
,
49
CCORD_DISCORD_JSON_CODE
= 100,
51
CCORD_DISCORD_BAD_AUTH
,
53
CCORD_DISCORD_RATELIMIT
,
55
CCORD_DISCORD_CONNECTION
,
56
}
CCORDcode
;
57
60
#endif
/* CONCORD_ERROR_H */
CCORDcode
CCORDcode
Definition:
error.h:12
CCORD_MALFORMED_PAYLOAD
@ CCORD_MALFORMED_PAYLOAD
Definition:
error.h:14
CCORD_DISCORD_CONNECTION
@ CCORD_DISCORD_CONNECTION
Definition:
error.h:55
CCORD_HTTP_CODE
@ CCORD_HTTP_CODE
Definition:
error.h:40
CCORD_PENDING
@ CCORD_PENDING
Definition:
error.h:47
CCORD_OK
@ CCORD_OK
Definition:
error.h:42
CCORD_FULL_WORKER
@ CCORD_FULL_WORKER
Definition:
error.h:16
CCORD_UNUSUAL_HTTP_CODE
@ CCORD_UNUSUAL_HTTP_CODE
Definition:
error.h:36
CCORD_UNAVAILABLE
@ CCORD_UNAVAILABLE
Definition:
error.h:20
CCORD_BAD_JSON
@ CCORD_BAD_JSON
Definition:
error.h:32
CCORD_CURL_NO_RESPONSE
@ CCORD_CURL_NO_RESPONSE
Definition:
error.h:38
CCORD_DISCORD_BAD_AUTH
@ CCORD_DISCORD_BAD_AUTH
Definition:
error.h:51
CCORD_OWNERSHIP
@ CCORD_OWNERSHIP
Definition:
error.h:24
CCORD_DISCORD_RATELIMIT
@ CCORD_DISCORD_RATELIMIT
Definition:
error.h:53
CCORD_BAD_PARAMETER
@ CCORD_BAD_PARAMETER
Definition:
error.h:34
CCORD_CURLM_INTERNAL
@ CCORD_CURLM_INTERNAL
Definition:
error.h:28
CCORD_GLOBAL_INIT
@ CCORD_GLOBAL_INIT
Definition:
error.h:26
CCORD_CURLE_INTERNAL
@ CCORD_CURLE_INTERNAL
Definition:
error.h:30
CCORD_DISCORD_JSON_CODE
@ CCORD_DISCORD_JSON_CODE
Definition:
error.h:49
CCORD_RESOURCE_OWNERSHIP
@ CCORD_RESOURCE_OWNERSHIP
Definition:
error.h:22
CCORD_RESOURCE_UNAVAILABLE
@ CCORD_RESOURCE_UNAVAILABLE
Definition:
error.h:18
core
error.h
Generated by
1.9.3