Treelite
|
C error handling. More...
Go to the source code of this file.
Classes | |
struct | TreeliteAPIErrorEntry |
Typedefs | |
using | TreeliteAPIErrorStore = treelite::ThreadLocalStore< TreeliteAPIErrorEntry > |
Functions | |
const char * | TreeliteGetLastError () |
display last error; can be called by multiple threads Note. Each thread will get the last error occured in its own context. More... | |
void | TreeliteAPISetLastError (const char *msg) |
Set the last error message needed by C API. More... | |
void TreeliteAPISetLastError | ( | const char * | msg | ) |
Set the last error message needed by C API.
msg | The error message to set. |
Definition at line 21 of file c_api_error.cc.
const char* TreeliteGetLastError | ( | void | ) |
display last error; can be called by multiple threads Note. Each thread will get the last error occured in its own context.
Definition at line 17 of file c_api_error.cc.