2024-09-28 23:13:42 +00:00
|
|
|
#ifndef ERROR_H
|
|
|
|
#define ERROR_H
|
|
|
|
|
|
|
|
enum error_t {
|
|
|
|
ERR_OK,
|
|
|
|
ERR_INPUT,
|
|
|
|
ERR_ALLOC,
|
|
|
|
ERR_NOTFOUND,
|
2024-10-04 05:05:43 +00:00
|
|
|
ERR_FORK,
|
|
|
|
ERR_SETSID,
|
2024-10-05 08:58:16 +00:00
|
|
|
ERR_SOCKET,
|
2024-10-10 05:58:13 +00:00
|
|
|
ERR_JSON_SERIALISE,
|
|
|
|
ERR_JSON_DESERIALISE,
|
2024-10-23 19:35:07 +00:00
|
|
|
ERR_INVALID_REQUEST,
|
|
|
|
ERR_REQUEST_FAILED,
|
2024-10-28 03:56:53 +00:00
|
|
|
ERR_THREAD,
|
2024-09-28 23:13:42 +00:00
|
|
|
__ERR_COUNT,
|
|
|
|
};
|
|
|
|
|
2024-09-29 07:33:16 +00:00
|
|
|
extern char const *const ERROR_STRS[];
|
2024-09-28 23:13:42 +00:00
|
|
|
|
|
|
|
#endif
|