GEGetErrorMsgV2
Description
Obtains and clears the error message returned by other API call failure in the process or thread.
This API is ABI-compatible (corresponding to D_GLIBCXX_USE_CXX11_ABI in the compilation file) and returns ge::AscendString. It is recommended and cannot be used together with GEGetErrorMsg.
Prototype
ge::AscendString GEGetErrorMsgV2();
Parameters
None
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
ge::AscendString |
Error message displayed during the execution. |
Restrictions
You are advised to call this API when an error is reported during execution, to obtain the error message for fault locating.
Parent topic: Graph Running APIs