! * \brief Update the backtrace of the error object. * \param backtrace_str The backtrace to update. * \param update_mode The mode to update the backtrace, * can be either kTVMFFIBacktraceUpdateModeReplace, kTVMFFIBacktraceUpdateModeAppend. */
| 267 | * can be either kTVMFFIBacktraceUpdateModeReplace, kTVMFFIBacktraceUpdateModeAppend. |
| 268 | */ |
| 269 | void UpdateBacktrace(const TVMFFIByteArray* backtrace_str, int32_t update_mode) { |
| 270 | ErrorObj* obj = static_cast<ErrorObj*>(data_.get()); |
| 271 | obj->update_backtrace(obj, backtrace_str, update_mode); |
| 272 | } |
| 273 | |
| 274 | /*! |
| 275 | * \brief Get the full message of the error, including kind, message and traceback. |