HIAI_DEF_ERROR_CODE
Registers error codes. This macro is defined in status.h.
This macro encapsulates the following functions:
static StatusFactory* StatusFactory::StatusFactory::GetInstance(); void RegisterErrorNo(const uint32_t err, const std::string& desc);
Syntax
HIAI_DEF_ERROR_CODE(moduleId, logLevel, codeName, codeDesc)
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
moduleId |
module ID |
- |
logLevel |
Error level |
- |
codeName |
Error code name |
- |
codeDesc |
Description of an error code, which is a character string |
- |
Return Value
None
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot