File QnnAipError.h¶
↰ Parent directory (include/QNN/AIP)
Contents
Definition (include/QNN/AIP/QnnAipError.h)¶
Includes¶
QnnError.h(File QnnError.h)
Classes¶
Defines¶
Full File Listing¶
Defines
-
QNN_AIP_ERROR_MAX_STRING_LEN 256
-
QNN_AIP_ERROR_MAX_CONTEXT_STORAGE 2
Maximum Storage allowed per context by AIP backend for saving errors.
Note
The storage limit passed in QnnBackend_Config_t during QnnBackend_initialize and in QnnContext_Config_t during QnnContext_create should be less than or equal to this allowed storage
-
QNN_AIP_ERROR_VERBOSE_INIT
{ \
{ 0 } /*errorString*/ \
}
QnnAipError_Verbose_t initializer macro.
-
QNN_AIP_ERROR_INFO_INIT { \
QNN_AIP_ERROR_TYPE_MAX
, /*errorType*/ \
{ \
QNN_AIP_ERROR_VERBOSE_INIT/*verboseInfo*/ \
} \
}
QnnAipError_Info_t initializer macro.
Enums
-
enum QnnAipError_Error_t¶
Values:
-
enumerator QNN_AIP_ERROR_MIN_ERROR = 10000¶
-
enumerator QNN_AIP_ERROR_NO_ERROR = 0¶
Qnn Error success.
-
enumerator QNN_AIP_ERROR_NOT_INITIALIZED = 10000 + 0¶
Error manager not initialized.
-
enumerator QNN_AIP_ERROR_INVALID_CONFIG = 10000 + 1¶
Invalid error manager config.
-
enumerator QNN_AIP_ERROR_INVALID_REPORTING_LEVEL = 10000 + 2¶
Invalid reporting level in error manager config.
-
enumerator QNN_AIP_ERROR_INVALID_ERRORHANDLE = 10000 + 3¶
Error handle not recognized.
-
enumerator QNN_AIP_ERROR_INVALID_STORAGE_LIMIT = 10000 + 4¶
Invalid storage limit in error manger config.
-
enumerator QNN_AIP_ERROR_INVALID_CONTEXTHANDLE = 10000 + 5¶
Invalid context identifier in error handle.
-
enumerator QNN_AIP_ERROR_MISSING_ERRORINFO = 10000 + 6¶
Error info not found.
-
enumerator QNN_AIP_ERROR_INVALID_ARGUMENT = 10000 + 7¶
Invalid function argument.
-
enumerator QNN_AIP_ERROR_OUT_OF_MEMORY = 10000 + 8¶
No space to accept new errors.
-
enumerator QNN_AIP_ERROR_MAX_NUM_CONTEXTS = 10000 + 9¶
Error manager already contains maximum number of contexts.
-
enumerator QNN_AIP_ERROR_UNKNOWN_ERROR = 10000 + 10¶
Unknown error.
-
enumerator QNN_AIP_ERROR_MAX_ERROR = 10999¶
-
enumerator QNN_AIP_ERROR_UNDEFINED = 0x7FFFFFFF¶
-
enumerator QNN_AIP_ERROR_MIN_ERROR = 10000¶
-
struct QnnAipError_StaticInfo_t¶
- #include <QnnAipError.h>
Struct which defines static error info.
Public Members
-
uint16_t errorCode¶
16-bit Error code extracted from error handle
-
uint16_t errorCode¶
-
struct QnnAipError_Blob_t¶
- #include <QnnAipError.h>
Struct which defines detailed error info.
-
struct QnnAipError_Verbose_t¶
- #include <QnnAipError.h>
This struct is used to provide verbose error string.
Note
This struct is added to QnnAipError_Info_t from which the errorString can be accessed by the user for errorType - QNN_AIP_ERROR_TYPE_VERBOSE
This is a C string - It is null terminated
Public Members
-
char errorString[256]¶
-
struct QnnAipError_Info_t¶
- #include <QnnAipError.h>
This is the error info struct provided as errorBuffer in QnnAipError_Blob_t.
The errorInfo can be obtained by casting errorBuffer field of QnnAipError_Blob_t to QnnAipError_Info_t. Based on the errorType, the type of error info structure can be found Below is the Map between QnnAipError_Type_t and type of Error Info Struct
#
errorType
errorInfo struct type
1
QNN_AIP_ERROR_TYPE_VERBOSE
QnnAipError_Verbose_t
Public Members
-
QnnAipError_Type_t errorType¶
-
QnnAipError_Verbose_t verboseInfo¶
-
union QnnAipError_Info_t::[anonymous] [anonymous]¶
-
QnnAipError_Type_t errorType¶