Function QnnError_getVerboseMessage

Function Documentation

Qnn_ErrorHandle_t QnnError_getVerboseMessage(Qnn_ErrorHandle_t errorHandle, const char **errorMessage)

Query QNN backend for verbose string message describing the error code. Returned message should contain detailed 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 verbose message associated with the passed errorHandle. The memory is owned by the backend and only freed when the caller invokes QnnError_freeVerboseMessage, passing the same error handle. 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 by backend