-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patherror_string.h
More file actions
39 lines (31 loc) · 1.13 KB
/
error_string.h
File metadata and controls
39 lines (31 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef ERROR_STRING_H_
#define ERROR_STRING_H_
#define K_TABLE_NOT_EXIST "No such table."
#define K_COLUMN_NOT_EXIST "No such column."
#define K_NOT_SUPPORT_DBTYPE "Not support db type.(1 or 2)"
#define K_CHECK_OPERATE "Check operate type. (operate 1~7)"
#define K_CHECK_OPTION "Could not parse option."
#define K_EXIST "Already exists."
#define K_NOT_EXIST "Could not find data."
#define K_REMOVE_SLOT_ERR "Could not remove repl slot"
#define K_SPI_ERR "Could not get relevant result from database"
#define K_FAILED_START "Could not start to repl"
#define K_EVENT_FAIL "Could not send signal to process"
#define K_KAFKA_CONN_ERR "Could not connect to kafka connect"
#define K_KAFKA_CONN_CONFIG "Check kafka connect URL"
#define K_UNKNOWN_ERROR "Unknown error"
#define K_INTERNAL_ERROR "internal error"
#define K_SUCCESS "Success"
#define K_PROC_NOT_WORKING "Process stopped"
#define K_PROC_WORKING "Process is running"
/* Error define */
#define ESPI (-8)
#define ERUN (-7)
#define ELEN (-6)
#define EMEM (-5)
#define ECONFIG (-4)
#define ENEXIST (-3)
#define EHTTP (-2)
#define EUKNOWN (-1)
#define ECONSUMER (10)
#endif /* ERROR_STRING_H_ */