Help Center/
Atlas 300 Application (Model 3000)/
Matrix API Reference/
Auxiliary APIs/
Logs (C++)/
Error Code Registration/
API Usage Example
Updated on 2022-03-13 GMT+08:00
API Usage Example
/*************************************************************************************** * Copyright (C) HiSilicon Co., Ltd. * * Filename: user_def_errorcode.h * Description: User defined Error Code * * Version: 1.0 * Created: 2018-01-08 10:15:18 * Author: * * Revision: initial draft; **************************************************************************************/ #ifndef USE_DEF_ERROR_CODE_H_ #define USE_DEF_ERROR_CODE_H_ #include "hiaiengine/status.h" #define USE_DEFINE_ERROR 0x6001 // ID of the custom module. The value 0x6001 is for reference only. You can set the value as required. The value cannot be the same as MODID_GRAPH in the status.h file. enum { HIAI_INVALID_INPUT_MSG_CODE = 0 // error code name. The value 0 is for reference only. You can set the value as required. }; HIAI_DEF_ERROR_CODE(USE_DEFINE_ERROR, HIAI_ERROR, HIAI_INVALID_INPUT_MSG, "invalid input message pointer"); #endif
Parent topic: Error Code Registration
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot