Struct TVMFFIErrorCell#
Defined in File c_api.h
Inheritance Relationships#
Derived Type#
public tvm::ffi::ErrorObj
(Class ErrorObj)
Struct Documentation#
-
struct TVMFFIErrorCell#
Error cell used in error object following header.
Subclassed by tvm::ffi::ErrorObj
Public Members
-
TVMFFIByteArray kind#
The kind of the error.
-
TVMFFIByteArray message#
The message of the error.
-
TVMFFIByteArray backtrace#
The backtrace of the error.
The backtrace is in the order of recent call first from the top of the stack to the bottom of the stack. This order makes it helpful for appending the extra backtrace to the end as we go up when error is propagated.
When printing out, we encourage reverse the order of lines to make it align with python style.
-
void (*update_backtrace)(TVMFFIObjectHandle self, const TVMFFIByteArray *backtrace, int32_t update_mode)#
Function handle to update the backtrace of the error.
- Param self:
The self object handle.
- Param backtrace:
The backtrace to update.
- Param update_mode:
The mode to update the backtrace, can be either kTVMFFIBacktraceUpdateModeReplace, kTVMFFIBacktraceUpdateModeAppend.
-
TVMFFIByteArray kind#