Function TVMFFIErrorSetRaisedFromCStr#
Defined in File c_api.h
Function Documentation#
-
void TVMFFIErrorSetRaisedFromCStr(const char *kind, const char *message)#
Set a raised error in TLS, which can be fetched by TVMFFIErrorMoveFromRaised.
Note
This is a convenient method for the C API side to set an error directly from a string.
- Parameters:
kind – The kind of the error.
message – The error message.