Function QnnError_getMessage¶
Defined in File QnnError.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnError_getMessage(Qnn_ErrorHandle_t errorHandle, const char **errorMessage)¶
Query QNN backend for string message describing the error code. Returned message should contain basic information about the nature of the error.
- Parameters
errorHandle – [in] Error handle to request descriptive message for.
errorMessage – [out] Pointer to a null terminated character array containing the message associated with the passed errorHandle. The memory is statically owned and should not be freed by the caller. If errorHandle is not recognized, the pointer errorMessage points to is set to nullptr.
- Returns
Error code:
QNN_SUCCESS: error string corresponding to the error handle successfully queried
QNN_ERROR_INVALID_ARGUMENT: errorMessage is null
QNN_ERROR_INVALID_ERROR_HANDLE: errorHandle not recognized