错误码共有7位,前两位表示错误类型,后5位表示具体错误描述。
// common status
HB_UCP_SUCCESS = 0 // Execution successfully
HB_UCP_INVALID_ARGUMENT = -100001 // Illegal parameter
HB_UCP_API_USE_ERROR = -100002 // Interface use error
HB_UCP_INIT_FAILED = -100003, // Init error
// task error
HB_UCP_TASK_NUMBER_EXCEED_LIMIT = -200001 // Number of tasks exceeds the limit
HB_UCP_TASK_TIMEOUT = -200002 // Task wait timeout
HB_UCP_TASK_RUN_FAILED = -200003 // Task failed to execute
HB_UCP_TASK_HANDLE_INVALID = -200004 // Illegal task handle
// op error
HB_UCP_OP_NUMBER_EXCEED_LIMIT = -300001 // Number of operators exceeds the limit
HB_UCP_OP_NOT_REGISTER = -300002 // The operator is not registered
HB_UCP_OP_CMD_UNAVAILABLE = -300003 // The operator command code is not available
// memory error
HB_UCP_MEM_ALLOC_FAIL = -400001 // Failed to alloc memory
HB_UCP_MEM_FREE_FAIL = -400002 // Failed to free memory
HB_UCP_MEM_FLUSH_FAIL = -400003 // Failed to flush cached data to memory
HB_UCP_MEM_INVALIDATE_FAIL = -400004 // Failed to flush memory to cache
HB_UCP_MEM_IS_INVALID = -400005 // Invalid memory
HB_UCP_MEM_MAP_FAIL = -400006 // Failed to map memory
HB_UCP_MEM_UNMAP_FAIL = -400007 // Failed to unmap memory
// file
HB_UCP_FILE_OPEN_FAILED = -500001 // Failed to open the file
// model
HB_UCP_MODEL_NUMBER_EXCEED_LIMIT = -600001 // Number of models exceeds the limit
HB_UCP_MODEL_INVALID = -600002 // Illegal model
HB_UCP_MODEL_IS_INUSE = -600003 // Model execution in progress
HB_UCP_MODEL_INCOMPATIBLE = -600004 // Incompatible model