simworld/common/include/error.h

22 lines
321 B
C
Raw Normal View History

#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,
ERR_SOCKET,
ERR_JSON_SERIALISE,
ERR_JSON_DESERIALISE,
ERR_INVALID_REQUEST,
ERR_REQUEST_FAILED,
__ERR_COUNT,
};
2024-09-29 07:33:16 +00:00
extern char const *const ERROR_STRS[];
#endif