OP_LOGE_FOR_INVALID_GRAPH_NODE
Description
Records and reports an invalid graph node error. If the input graph contains invalid nodes, an error log is generated and the error code EZ0036 is reported.
Prototype
OP_LOGE_FOR_INVALID_GRAPH_NODE(nodeName, reason)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
nodeName |
Input |
Graph node name. The type can be const char* or std::string. |
reason |
Input |
Error cause. The type can be const char* or std::string. |
Return Value
None.
Constraints
None.
Example
The following sample code is for reference only. Do not copy and run it.
1 2 3 4 | if (nodeType == nullptr) { OP_LOGE_FOR_INVALID_GRAPH_NODE(nodeName, "node type is null"); return ge::GRAPH_FAILED; } |
Parent topic: log