Resource Tuner
Loading...
Searching...
No Matches
ErrCodes.h File Reference

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 17 of file ErrCodes.h.

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