13 struct TreeliteAPIErrorEntry {
14 std::string last_error;
22 return TreeliteAPIErrorStore::Get()->last_error.c_str();
26 TreeliteAPIErrorStore::Get()->last_error = msg;
const char * TreeliteGetLastError()
display last error; can be called by multiple threads Note. Each thread will get the last error occur...
Helper class for thread-local storage.
Error handling for C API.
void TreeliteAPISetLastError(const char *msg)
Set the last error message needed by C API.