Userspace Resource Manager
Loading...
Searching...
No Matches
ErrCodes.h File Reference
#include <cstdint>

Go to the source code of this file.

Enumerations

enum  ErrCode
 Custom Error Codes used by Resource Tuner APIs and Internal Functions. More...
 

Enumeration Type Documentation

◆ ErrCode

enum ErrCode

Custom Error Codes used by Resource Tuner APIs and Internal Functions.

These Error Codes should be used in conjunction with the Macros RC_IS_OK and RC_IS_NOTOK to check for Success or Failure.

Definition at line 19 of file ErrCodes.h.

19 {
20 RC_REQ_SUBMISSION_FAILURE = -1,
21 RC_SUCCESS,
22 RC_MODULE_INIT_FAILURE,
23 RC_FILE_NOT_FOUND,
24 RC_YAML_PARSING_ERROR,
25 RC_YAML_INVALID_SYNTAX,
26 RC_REQUEST_SANITY_FAILURE,
27 RC_REQUEST_VERIFICATION_FAILURE,
28 RC_REQUEST_NOT_FOUND,
29 RC_DUPLICATE_REQUEST,
30 RC_MEMORY_ALLOCATION_FAILURE,
31 RC_MEMORY_POOL_ALLOCATION_FAILURE,
32 RC_MEMORY_POOL_BLOCK_RETRIEVAL_FAILURE,
33 RC_PROP_PARSING_ERROR,
34 RC_PROP_NOT_FOUND,
35 RC_BAD_ARG,
36 RC_INVALID_VALUE,
37 RC_SOCKET_CONN_NOT_INITIALIZED,
38 RC_SOCKET_OP_FAILURE,
39 RC_SOCKET_FD_READ_FAILURE,
40 RC_SOCKET_FD_WRITE_FAILURE,
41 RC_SOCKET_FD_CLOSE_FAILURE,
42 RC_REQUEST_DESERIALIZATION_FAILURE,
43 RC_REQUEST_PARSING_FAILED,
44 RC_RESOURCE_NOT_SUPPORTED,
45 RC_WORKER_THREAD_ASSIGNMENT_FAILURE,
46 RC_LOGICAL_TO_PHYSICAL_GEN_FAILED,
47 RC_CGROUP_CREATION_FAILURE,
48};